Peak problem types

Peak problem types

Every Peak HTTP API answers an error as an RFC 9457 problem: a JSON object sent as application/problem+json whose type is a URI on this site. Each URI leads to the page of its type: what it means, who can act on it, and what an answer with it looks like.

type, code
The identity of the problem, twice: type as a URI, code as a short snake_case name. A client branches on code.
status, title
The HTTP status, and a fixed English summary of the type that nothing parses.
audience
user: the person using the client can act on it, and a client may show them detail. client: only the calling software can, and a client shows its own failure with the traceId.
traceId
The trace id of the request, which support finds it by.
Retry-After
When to ask again is said by this HTTP header, never by the body.
errors
A request that breaks its rules is answered validation-failed, with one entry per broken rule: a JSON Pointer to the body member (pointer) or the name of the query or route parameter (parameter), a rule code, and minimum or maximum when the rule has bounds.

Services

Shared