Skip to content

Request

The request body could not be read

The body is not valid JSON, or does not match the Content-Type it was sent with.

HTTP 400MALFORMED_REQUEST

In the response

Besides the standard members type, title, status, detail, instance, plus code and requestId:

Nothing else. This error carries no errors or meta.

Example response

HTTP 400 · application/problem+json
{
  "type": "https://smartpathshaala.com/problems/malformed-request",
  "title": "The request body could not be read",
  "status": 400,
  "detail": "<what went wrong this time>",
  "instance": "<the request path>",
  "code": "MALFORMED_REQUEST",
  "requestId": "<also sent as X-Request-Id>"
}

Values in angle brackets vary per request. Quote the requestId when reporting an error; it is how the server’s log line is found.