A standardised HTTP request error. Works together with @kurrent-ui/forms to assign HTTPProblemDetails fields to errors on form fields.
Construct a HTTPError from a Fetch Response and an an optional details extractor.
The status code of the HTTP response.
The status name of the HTTP response.
Extract the HTTPProblemDetails from the Response.
Returns a new HTTPError that calls the passed function on it's detail's fields when they are read.
Returns a new HTTPError that calls the passed function on it's details when they are read.
HTTPProblemDetails
A longer form explanation of the problem.
If the problem was with a form request, messages are mapped to the data sent. Working Data will automatically assign these to the originating fields.
A human readable short title for the problem.