Skip to main content

Module error

Module error 

Source

Modules§

problem
RFC 9457 problem details for the errors rws itself produces (18.17.0): application/problem+json bodies such as {"type":"about:blank","title":"Bad Gateway","status":502,"detail":"…"}. RWS_CONFIG_ERROR_FORMAT=text keeps the plain-text bodies of earlier releases (502 Bad Gateway, 413 Payload Too Large: …).

Enums§

AppError
A built-in typed error that maps common failure cases to standard HTTP status codes. Use it directly or as a model for your own error type.

Traits§

IntoResponse
Implemented by any type that can be turned into an HTTP Response.

Functions§

problem
An rws-made error: problem details, or with error_format = "text" the text "<code> <reason>[: <detail>]".