View Source Orbit.Status (Orbit v0.3.0)

The canonical list of response status codes.

This module contains helper functions for applying any status code to an Orbit.Request.

When set manually, status codes may be specified by integer or atom. They can be coerced one way or the other with to_atom/1 and to_integer/1.

StatusName
10:input
11:sensitive_input
20:success
30:redirect_temporary
31:redirect_permanent
40:temporary_failure
41:server_unavailable
42:cgi_error
43:proxy_error
44:slow_down
50:permanent_failure
51:not_found
52:gone
53:proxy_request_refused
59:bad_request
60:client_certificate_required
61:certificate_not_authorized
62:certificate_not_valid

Summary

Functions

Returns a map of all status codes with atom keys.

Normalizes a status code to an atom.

Normalizes a status code to an integer.

Types

Functions

Returns a map of all status codes with atom keys.

Normalizes a status code to an atom.

Normalizes a status code to an integer.