## Error Group

Defines a set of error codes grouped by a given endpoint, that may appear in other endpoints as well:

|  | Status Code |
| --- | --- |
| Account | `1xx` |
| Account Events | `2xx` |
| Consumers | `3xx` |
| Consumer Events | `4xx` |
| Statements | `5xx` |

## Error numbers

The “error number” groups the semantics of the error by code:

- Request-related errors (`x10-x29`)

- Business Logic validation errors (`x30 - x49`)

- Metro2 compliance validation (`x50 - 79`)

- Logic errors (`x80-x99`)

| Error Title | Error Codes | Possible Reason | What to Check |
| --- | --- | --- | --- |
| "Associated relationship not found" | 11 | The ID provided in a field in the request body, was not found for the current organization. | Make sure the ID described in the error message exists in your organization. |
| "Value not in enum" | 12 | Provided value is not part of the enum | Check the doc for the available enums for the specific field |
| "Required field is missing" | 13 | The value in the request body should not be null | Check the field mentioned in the detail section of the error and provide a valid value. |
| "Internal validation error" | 30 | There is an inconsistency between two or more fields provided in the request data e.g., `open date > close date` |  |
| "Update not allowed" | 31 |  |  |
| "Delete not allowed" | 32 |  |  |
| "Event not allowed" | 33 |  |  |
| "Requires start event" | 34 |  |  |
| "Reverse not allowed" | 35 |  |  |
| "Consumer action not allowed" | 37 |  |  |
| "Failed Credit Report validation" | 50 |  |  |
| "Invalid Special Comment Code" | 51 |  |  |
| "Transition not allowed" | 52 |  |  |
