Error codes

request_refused

Request refused

HTTP 400

A refusal with no more specific code. The response's status is the HTTP status it was sent with, and error gives the reason; send us the request_id if it is unclear.

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": "Request refused",
  "code": "request_refused",
  "type": "https://secondappraisal.com/developers/errors/request_refused",
  "title": "Request refused",
  "status": 400,
  "detail": "Request refused",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it

No operation lists this code among its refusals; the description above says when it is sent.