Error codes

state_not_launched

State not in your launch

HTTP 422

Your institution's launch covers only the states we confirmed with you. The state judged is garaged_state when it is sent, else loss_state: the problem names it in state, basis says which (garaged or loss), and launch_states lists the states your launch covers. A referral with neither state is accepted. To add a state, contact 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
{
  "state": "<state>",
  "basis": "garaged",
  "launch_states": [
    "<state>"
  ],
  "error": "Your launch doesn't include vehicles garaged in <state> yet, so this referral can't be taken. Your launch covers <launch states>.",
  "code": "state_not_launched",
  "type": "https://secondappraisal.com/developers/errors/state_not_launched",
  "title": "State not in your launch",
  "status": 422,
  "detail": "Your launch doesn't include vehicles garaged in <state> yet, so this referral can't be taken. Your launch covers <launch states>.",
  "instance": "/api/gap/v1/referrals",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it