The request could not be read.
- Code
request_unreadable- Type
https://problems.peakintelligence.ch/request-unreadable- Status
- 400 Bad Request
- Audience
client. Only the calling software can act on it. A client shows its own general failure and quotestraceId;detailis in English, for developers.- Service
- Shared: every Peak service answers with it.
Description
The service could not read the request at all: the body is not valid JSON, has the wrong shape for the endpoint (an object where a list belongs, a string where a number belongs), or a route or query value cannot be read as its type. errors may point at the place it gave up. A correct client never sends such a request: fix the code that builds it; a person cannot correct it.
Example
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
{
"type": "https://problems.peakintelligence.ch/request-unreadable",
"title": "The request could not be read.",
"status": 400,
"code": "request_unreadable",
"audience": "client",
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
A real answer also carries detail when there is something to say about this occurrence, and may carry errors or members of the type's own, which the service's OpenAPI document describes. When to ask again is the Retry-After header.