W W.A.L.T.Developers Main site
API errors · v1

Error codes

Every Partner API error is application/problem+json (RFC 9457) with a stable code. Its type is the page for that code, listed below. Branch on code, never on title or detail.

JSON
{
  "type": "https://www.underwritinguk.ai/developers/errors/validation_failed",
  "title": "Request validation failed",
  "status": 422,
  "code": "validation_failed",
  "detail": "1 field is invalid.",
  "request_id": "7b0b1e5c-2f7e-4a52-9a43-5b0d0f0e9d11",
  "errors": [
    {
      "pointer": "/individuals/0/date_of_birth",
      "code": "must_be_past",
      "message": "Date of birth must be in the past."
    }
  ]
}
HTTPcodeTitleRetry?
400bad_requestBad requestNo
400invalid_jsonRequest body is not valid JSONNo
400idempotency_key_requiredIdempotency-Key header requiredNo
400invalid_scopeRequested scope not granted to this clientNo
401invalid_clientClient authentication failedNo
401invalid_tokenAccess token is invalidRefresh the token once
401token_expiredAccess token has expiredRefresh the token once
402quota_exhaustedToken quota exhaustedNo
403insufficient_scopeInsufficient scopeNo
403module_not_enabledModule not enabledNo
403ip_not_allowedIP address not allowedNo
403organisation_suspendedOrganisation suspendedNo
403acting_user_not_allowedActing user not allowedNo
403forbiddenForbiddenNo
404not_foundResource not foundNo
405method_not_allowedMethod not allowedNo
409case_existsA case with this external_ref already existsNo (handle)
409assessment_in_progressAn assessment is already running for this caseNo (handle)
409case_lockedCase is locked while an assessment is runningNo (handle)
409idempotency_conflictIdempotency key reused with a different requestNo (handle)
409idempotency_in_progressA request with this Idempotency-Key is still in progressYes, shortly, with the same key
409idempotency_result_unavailableThe request was processed but its response cannot be returnedNo (handle)
409case_type_lockedcase_type cannot change after the first assessmentNo (handle)
409assessment_cooldownAssessment cooldown after a failed assessmentAfter Retry-After (≤ 5 min)
409case_closedThe case is closedNo (handle)
409conflictConflictNo (handle)
412precondition_failedPrecondition failedRe-read, then retry
413payload_too_largePayload too largeNo
415unsupported_media_typeUnsupported media typeNo
422validation_failedRequest validation failedNo
422case_incompleteCase is missing the minimum dataNo
422acting_user_not_foundActing user not foundNo
429rate_limitedRate limit exceededAfter Retry-After
429concurrency_limitedToo many assessments running at onceAfter Retry-After
500internal_errorInternal errorYes, with backoff
503service_unavailableService unavailableYes, after Retry-After
503maintenanceDown for maintenanceYes, after Retry-After

The OAuth token endpoint answers OAuth 2.0 errors (invalid_client, invalid_scope, …), not problem+json. Within /v1 new codes may be added: treat an unknown code by its HTTP status. See the error catalogue (§15) and error handling and retries (§12.4) in the integration guide.