Modules§
- page
- The HTML page rws shows a browser for its own errors (18.37.0): 404, 502, 503, maintenance and the rest. One self-contained template (inline CSS, light and dark, a title, the status, one sentence, a link home) in the look of the directory listing.
- problem
- RFC 9457 problem details for the errors rws itself produces (18.17.0):
application/problem+jsonbodies such as{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"…"}.RWS_CONFIG_ERROR_FORMAT=textkeeps 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§
- Into
Response - 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>]".