Error codes

state_required

Garaged state required

HTTP 422

Send garaged_state so we can confirm we can serve the vehicle there.

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": "Garaged state required",
  "code": "state_required",
  "type": "https://secondappraisal.com/developers/errors/state_required",
  "title": "Garaged state required",
  "status": 422,
  "detail": "Garaged state required",
  "instance": "/api/gap/v1/plans/enrollments",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it