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.