Skip to main content

Module problem

Module problem 

Source
Expand description

RFC 9457 problem details, expressed in Links Notation (specification section 5).

Structs§

LinoHttpError
An HTTP error that carries problem details.

Constants§

PROBLEM_TYPE_BASE
Base URI every registered problem type is resolved against.

Functions§

problem_details
Build problem details for a status code without constructing an error first.
problem_slug
Kebab-case slug used as the last segment of a problem type URI.
reason_phrase
Reason phrase of a status code, falling back to a generic class phrase.
validation_error
A 422 carrying field-level validation failures.