Module poem::error [−][src]
Expand description
Some common error types.
Structs
General response error.
Only the endpoints under the router can get the path parameters, otherwise this error will occur.
A possible error value when extracts data from request fails.
A possible error value when parsing query.
Enums
cookie
A possible error value when parsing cookie.
A possible error value when parsing form.
A possible error value when parsing JSON.
multipart
A possible error value when parsing multipart.
A possible error value when parsing typed headers.
A possible error value when reading the body.
A possible error value when upgrading connection.
websocket
A possible error value when handling websocket.
Functions
Wraps any error into Error
and the status code is StatusCode::BAD_GATEWAY
.
Wraps any error into Error
and the status code is StatusCode::BAD_REQUEST
.
Wraps any error into Error
and the status code is StatusCode::CONFLICT
.
Wraps any error into Error
and the status code is StatusCode::EXPECTATION_FAILED
.
Wraps any error into Error
and the status code is StatusCode::FAILED_DEPENDENCY
.
Wraps any error into Error
and the status code is StatusCode::FORBIDDEN
.
Wraps any error into Error
and the status code is StatusCode::GATEWAY_TIMEOUT
.
Wraps any error into Error
and the status code is StatusCode::GONE
.
Wraps any error into Error
and the status code is StatusCode::HTTP_VERSION_NOT_SUPPORTED
.
Wraps any error into Error
and the status code is StatusCode::IM_A_TEAPOT
.
Wraps any error into Error
and the status code is StatusCode::INSUFFICIENT_STORAGE
.
Wraps any error into Error
and the status code is StatusCode::INTERNAL_SERVER_ERROR
.
Wraps any error into Error
and the status code is StatusCode::LENGTH_REQUIRED
.
Wraps any error into Error
and the status code is StatusCode::LOCKED
.
Wraps any error into Error
and the status code is StatusCode::LOOP_DETECTED
.
Wraps any error into Error
and the status code is StatusCode::METHOD_NOT_ALLOWED
.
Wraps any error into Error
and the status code is StatusCode::MISDIRECTED_REQUEST
.
Wraps any error into Error
and the status code is StatusCode::NETWORK_AUTHENTICATION_REQUIRED
.
Wraps any error into Error
and the status code is StatusCode::NOT_ACCEPTABLE
.
Wraps any error into Error
and the status code is StatusCode::NOT_EXTENDED
.
Wraps any error into Error
and the status code is StatusCode::NOT_FOUND
.
Wraps any error into Error
and the status code is StatusCode::NOT_IMPLEMENTED
.
Wraps any error into Error
and the status code is StatusCode::PAYLOAD_TOO_LARGE
.
Wraps any error into Error
and the status code is StatusCode::PAYMENT_REQUIRED
.
Wraps any error into Error
and the status code is StatusCode::PRECONDITION_FAILED
.
Wraps any error into Error
and the status code is StatusCode::PRECONDITION_REQUIRED
.
Wraps any error into Error
and the status code is StatusCode::PROXY_AUTHENTICATION_REQUIRED
.
Wraps any error into Error
and the status code is StatusCode::RANGE_NOT_SATISFIABLE
.
Wraps any error into Error
and the status code is StatusCode::REQUEST_HEADER_FIELDS_TOO_LARGE
.
Wraps any error into Error
and the status code is StatusCode::REQUEST_TIMEOUT
.
Wraps any error into Error
and the status code is StatusCode::SERVICE_UNAVAILABLE
.
Wraps any error into Error
and the status code is StatusCode::TOO_MANY_REQUESTS
.
Wraps any error into Error
and the status code is StatusCode::UNAUTHORIZED
.
Wraps any error into Error
and the status code is StatusCode::UNAVAILABLE_FOR_LEGAL_REASONS
.
Wraps any error into Error
and the status code is StatusCode::UNPROCESSABLE_ENTITY
.
Wraps any error into Error
and the status code is StatusCode::UNSUPPORTED_MEDIA_TYPE
.
Wraps any error into Error
and the status code is StatusCode::UPGRADE_REQUIRED
.
Wraps any error into Error
and the status code is StatusCode::URI_TOO_LONG
.
Wraps any error into Error
and the status code is StatusCode::VARIANT_ALSO_NEGOTIATES
.
Type Definitions
A specialized Result type for Poem.