TwitterViewer.ErrorCode (TwitterViewer v0.1.0)

Copy Markdown View Source

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

all()

@spec all() :: [String.t()]

All codes, as strings.

conflict()

@spec conflict() :: String.t()

The code CONFLICT.

email_blocked()

@spec email_blocked() :: String.t()

The code EMAIL_BLOCKED.

email_not_configured()

@spec email_not_configured() :: String.t()

The code EMAIL_NOT_CONFIGURED.

email_send_failed()

@spec email_send_failed() :: String.t()

The code EMAIL_SEND_FAILED.

forbidden()

@spec forbidden() :: String.t()

The code FORBIDDEN.

human_check_required()

@spec human_check_required() :: String.t()

The code HUMAN_CHECK_REQUIRED.

internal()

@spec internal() :: String.t()

The code INTERNAL.

invalid_input()

@spec invalid_input() :: String.t()

The code INVALID_INPUT.

invalid_or_expired_token()

@spec invalid_or_expired_token() :: String.t()

The code INVALID_OR_EXPIRED_TOKEN.

limit_reached()

@spec limit_reached() :: String.t()

The code LIMIT_REACHED.

not_found()

@spec not_found() :: String.t()

The code NOT_FOUND.

protected()

@spec protected() :: String.t()

The code PROTECTED.

rate_limited()

@spec rate_limited() :: String.t()

The code RATE_LIMITED.

service_unavailable()

@spec service_unavailable() :: String.t()

The code SERVICE_UNAVAILABLE.

suspended()

@spec suspended() :: String.t()

The code SUSPENDED.

turnstile_failed()

@spec turnstile_failed() :: String.t()

The code TURNSTILE_FAILED.

unauthorized()

@spec unauthorized() :: String.t()

The code UNAUTHORIZED.

unsupported()

@spec unsupported() :: String.t()

The code UNSUPPORTED.

upstream()

@spec upstream() :: String.t()

The code UPSTREAM.