Skip to content

Errors ​

Errors use one body shape across capabilities. Each endpoint page lists the status codes and error codes it can return.

Error body ​

json
{
  "success": false,
  "error": "roleName must be in format \"Application:RoleName\" (e.g., \"Honeycomb:Honeycomb Read\")",
  "code": "VALIDATION_ERROR",
  "details": {
    "fields": [
      {
        "field": "roleName",
        "message": "Expected format: Application:RoleName",
        "code": "INVALID_FORMAT"
      }
    ]
  },
  "correlationId": "correlation-id",
  "timestamp": "2026-10-16T00:00:00.000Z"
}
FieldTypeDescription
successbooleanAlways false on an error
errorstringShort description safe to show to an API client
codestringStable machine-readable error code. Branch on this, not on error
details.fieldsarrayField-level problems. Can be empty
details.fields[].fieldstringField that failed
details.fields[].messagestringWhat is wrong with the field
details.fields[].codestringField error code
correlationIdstringValue of Asurion-correlationid from the request
timestampstringWhen the error happened, in ISO 8601

Some responses do not use the full shape. A 404 from User detail returns only success and message. A 401 has no code.

Status codes ​

StatusMeaning
400The request is invalid. Fix the request before retrying
401The token, code, or password is missing or not valid
403The caller is not allowed to do this
404The resource was not found
409The request conflicts with existing data
500Something unexpected failed. Retry later and share the correlationId if it keeps failing

Error codes ​

CodeStatusWhen
VALIDATION_ERROR400A field is missing, has the wrong type, or breaks a rule
SSO_ONLY_ACCOUNT400The account uses single sign-on, so password change or reset is not available
ENDUSER_FLOW_MISMATCH403Asurion-enduser does not match the account that owns the code
NOT_FOUND404No matching record was found
USERNAME_TAKEN409The username already exists
INTERNAL_ERROR500Something unexpected failed

Field error codes ​

CodeWhen
REQUIRED_FIELDThe field is missing
INVALID_FORMATThe field has the wrong shape
APPLICATION_NOT_SUPPORTEDThe application is not supported by this endpoint

Partial failures ​

Batch endpoints, such as Onboarding, can return a result per item. Check success on each item, not only the HTTP status.

json
{
  "index": 0,
  "email": "user@example.com",
  "success": false,
  "userNumber": 1001,
  "error": "User exists and is deactivated"
}