Every error code the service defines. Compare against TwitterViewer.APIError.code.
{:error, %TwitterViewer.APIError{code: code}} = TwitterViewer.credits(client)
code == TwitterViewer.ErrorCode.limit_reached()
Summary
Functions
All codes, as strings.
The code CONFLICT.
The code EMAIL_BLOCKED.
The code EMAIL_NOT_CONFIGURED.
The code EMAIL_SEND_FAILED.
The code FORBIDDEN.
The code HUMAN_CHECK_REQUIRED.
The code INTERNAL.
The code INVALID_INPUT.
The code INVALID_OR_EXPIRED_TOKEN.
The code LIMIT_REACHED.
The code NOT_FOUND.
The code PROTECTED.
The code RATE_LIMITED.
The code SERVICE_UNAVAILABLE.
The code SUSPENDED.
The code TURNSTILE_FAILED.
The code UNAUTHORIZED.
The code UNSUPPORTED.
The code UPSTREAM.
Functions
@spec all() :: [String.t()]
All codes, as strings.
@spec conflict() :: String.t()
The code CONFLICT.
@spec email_blocked() :: String.t()
The code EMAIL_BLOCKED.
@spec email_not_configured() :: String.t()
The code EMAIL_NOT_CONFIGURED.
@spec email_send_failed() :: String.t()
The code EMAIL_SEND_FAILED.
@spec forbidden() :: String.t()
The code FORBIDDEN.
@spec human_check_required() :: String.t()
The code HUMAN_CHECK_REQUIRED.
@spec internal() :: String.t()
The code INTERNAL.
@spec invalid_input() :: String.t()
The code INVALID_INPUT.
@spec invalid_or_expired_token() :: String.t()
The code INVALID_OR_EXPIRED_TOKEN.
@spec limit_reached() :: String.t()
The code LIMIT_REACHED.
@spec not_found() :: String.t()
The code NOT_FOUND.
@spec protected() :: String.t()
The code PROTECTED.
@spec rate_limited() :: String.t()
The code RATE_LIMITED.
@spec suspended() :: String.t()
The code SUSPENDED.
@spec turnstile_failed() :: String.t()
The code TURNSTILE_FAILED.
@spec unauthorized() :: String.t()
The code UNAUTHORIZED.
@spec unsupported() :: String.t()
The code UNSUPPORTED.
@spec upstream() :: String.t()
The code UPSTREAM.