error-type
Error Type
{
"name": string,
"message": string,
"code": number,
"className": string,
"data": {
"errorCode": string
}
}
Property | Type | Format | Description | Example | |
---|---|---|---|---|---|
name | string | PascalCase | Name of the error | "BadRequest" | |
message | string | Sentence case | Message for developer that explains the error | "Additional information is required to source data for user: birthDate" | |
code | number | 3 digits (0-9) | HTTP response status code | 400 | |
className | string | kebab-case | Class of error | bad-request | |
data.errorCode |
| 3 letters and 3 digits (0-9) | Verified error code | Verified specific error code (see Error Codes) | "OCE011" |