Error codes

invalid_json

Invalid JSON

HTTP 400

The body is missing, or is not valid JSON in UTF-8.

The problem body

Sent as application/problem+json, with the request id in request_id and the X-Request-Id header. Branch on code: the error and detail sentences can change, and some operations add members of their own.

Example problem
{
  "error": "Invalid JSON body.",
  "code": "invalid_json",
  "type": "https://secondappraisal.com/developers/errors/invalid_json",
  "title": "Invalid JSON",
  "status": 400,
  "detail": "Invalid JSON body.",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it