Error codes

unsupported_media_type

Unsupported media type

HTTP 415

A request body must be sent with Content-Type: application/json.

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": "Content-Type must be application/json",
  "code": "unsupported_media_type",
  "type": "https://secondappraisal.com/developers/errors/unsupported_media_type",
  "title": "Unsupported media type",
  "status": 415,
  "detail": "Content-Type must be application/json",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it