Module http

Source
Expand description

HTTP related well-known errors.

Structs§

BadRequest
A 400 - Bad Request error.
Conflict
A 409 - Conflict error.
Forbidden
A 403 - Forbidden HTTP error.
InternalError
A 500 - Internal Server Error error.
NotFound
A 404 - Not Found error.
PreconditionFailed
A 419 - Precondition Failed error.
ServiceUnavailable
A 503 - Service Unavailable error.
Unauthorized
A 401 - Unauthorized HTTP error.
UnprocessableEntity
A 422 - Unprocessable Entity error.

Functions§

bad_request
Create a Problem instance with a BadRequest cause.
conflict
Create a Problem instance with a Conflict cause.
failed_precondition
Create a Problem instance with a PreconditionFailed cause.
forbidden
Create a Problem instance with an Forbidden cause.
internal_error
Create a Problem instance with no available cause.
not_found
Create a Problem instance with a NotFound cause.
not_found_unknown
Create a Problem instance with a NotFound cause with an unknown identifier.
service_unavailable
Create a Problem instance with a ServiceUnavailable cause.
unauthorized
Create a Problem instance with an Unauthorized cause.
unprocessable
Create a Problem instance with an UnprocessableEntity cause.