Error codes

request_refused

Request refused

HTTP: as sent

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

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": "We couldn't accept live referrals just now. Nothing was written; retry after the seconds in Retry-After.",
  "code": "request_refused",
  "type": "https://secondappraisal.com/developers/errors/request_refused",
  "title": "Request refused",
  "status": 503,
  "detail": "We couldn't accept live referrals just now. Nothing was written; retry after the seconds in Retry-After.",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it