Expand description
Errors that can occur while extracting information from the request body.
Structs§
- Json
Content Type Mismatch - The
Content-Typeheader not set toapplication/json, or anotherapplication/*+jsonMIME type. - Json
Deserialization Error - Something went wrong when deserializing the request body into the specified type.
- Missing
Json Content Type - The
Content-Typeheader is missing, while we expected it to be set toapplication/json, or anotherapplication/*+jsonMIME type. - Missing
UrlEncoded Content Type - The
Content-Typeheader is missing, while we expected it to be set toapplication/x-www-form-urlencoded. - Size
Limit Exceeded - The request body is larger than the maximum size limit enforced by this server.
- Unexpected
Buffer Error - Something went wrong while reading the request body, but we don’t know what specifically.
- UrlEncoded
Body Deserialization Error - Something went wrong when deserializing the request body into the specified type.
- UrlEncoded
Content Type Mismatch - The
Content-Typeheader not set toapplication/x-www-form-urlencoded.
Enums§
- Extract
Buffered Body Error - The error returned by
BufferedBody::extractwhen the extraction fails. - Extract
Json Body Error - The error returned by
JsonBody::extractwhen the extraction fails. - Extract
UrlEncoded Body Error - The error returned by
UrlEncodedBody::extractwhen the extraction fails.
Constants§
- EXTRACT_
BUFFERED_ BODY_ ERROR_ INTO_ RESPONSE - A handle to add
ExtractBufferedBodyError::into_response()as an error handler to your Pavex application. - EXTRACT_
JSON_ BODY_ ERROR_ INTO_ RESPONSE - A handle to add
ExtractJsonBodyError::into_response()as an error handler to your Pavex application. - EXTRACT_
URL_ ENCODED_ BODY_ ERROR_ INTO_ RESPONSE - A handle to add
ExtractUrlEncodedBodyError::into_response()as an error handler to your Pavex application.