vpndetection_error (vpndetection v3.1.0)
View SourceWhy a request failed, and whether trying it again could ever help.
Summary
Functions
A per-entry failure inside a successful batch: the status the single lookup would have answered, and its message, with no headers at all - so a 429 here is a spent allowance, which is the only kind the API puts in an entry.
Classify a non-2xx response.
Classify a failure that never produced a response at all.
Types
-type error() :: #{kind := kind(), message := binary(), retryable := boolean(), status => 100..599, retry_after => non_neg_integer()}.
-type kind() ::
bad_request | unauthorized | forbidden | rate_limited | quota_exceeded | server_error |
network | io.
Functions
A per-entry failure inside a successful batch: the status the single lookup would have answered, and its message, with no headers at all - so a 429 here is a spent allowance, which is the only kind the API puts in an entry.
Classify a non-2xx response.
Classify a failure that never produced a response at all.