Skip to main content

Module problem

Module problem 

Source
Expand description

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: …).

Constants§

PROBLEM_JSON
Content-Type of a problem details body.

Functions§

problem
An rws-made error: problem details, or with error_format = "text" the text "<code> <reason>[: <detail>]".
problem_with_text
problem whose text form is text rather than the status line.
text_errors
Whether rws-made errors use plain text (error_format = "text").