Skip to main content

Module status

Module status 

Source
Expand description

The HTTP statuses the clients map, named so the mapping code holds no bare numbers.

Constants§

BAD_GATEWAY
BAD_REQUEST
CONFLICT
FORBIDDEN
GATEWAY_TIMEOUT
NOT_FOUND
OK
PAYLOAD_TOO_LARGE
TOO_MANY_REQUESTS
UNAUTHORIZED
UNSUPPORTED_MEDIA_TYPE

Functions§

is_success
True for a 2xx status.
is_transient
True for a status that says the service is briefly unavailable, not that the request was wrong: a 5xx, 408 or 429. Its body, often a gateway’s HTML page, says nothing about the request.