Error codes

target_uri_not_allowed

Host not accepted for signed requests

HTTP 401

The signed request was sent to a host that doesn't take signed requests. Send it to a public hostname (secondappraisal.com, gap.secondappraisal.com or lenders.secondappraisal.com), and sign that host in @target-uri.

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": "Host not accepted for signed requests",
  "code": "target_uri_not_allowed",
  "type": "https://secondappraisal.com/developers/errors/target_uri_not_allowed",
  "title": "Host not accepted for signed requests",
  "status": 401,
  "detail": "Host not accepted for signed requests",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it