# Codes and Formats
source: https://developer.mastercard.com/open-finance-europe/documentation/unlicensed/insights/code-formats/index.md

## Error Handling {#error-handling}

All successful requests to the API return HTTP 200. In case of errors, the API returns a JSON response containing the error code and details about the error.

The following combination of error codes are returned from the API:

| **HTTP Status** |   **Reason Code**   |                                       **Description**                                       |                                         **How to handle**                                          |
|-----------------|---------------------|---------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| 400             | `INPUT_ERROR`       | `customerName`length must be between 1 and 265 characters                                   | Adjust the value provided within this field in line with advised formatting requirements.          |
| 400             | `INPUT_ERROR`       | `redirectUrl` length must be between 1 and 265                                              | Adjust the value provided within this field in line with advised formatting requirements.          |
| 400             | `FORMAT_ERROR`      | Redirect URL was not provided                                                               | Provide redirectUrl in future calls.                                                               |
| 400             | `CLIENT_ERROR`      | Redirect URL provided does not match one of the URLs specified during application creation. | Review and correct the redirectUrl provided in your request                                        |
| 400             | `FORMAT_ERROR`      | Invalid value in jobID field.                                                               | Adjust the value provided within this field in line with advised formatting requirements.          |
| 400             | `CLIENT_ERROR`      | The server cannot find the requested job.                                                   | Check provided jobId, this value may be incorrect, or the job may be expired.                      |
| 401             | `DECLINED`          | There is an issue with the provided Client authentication credentials.                      | Check your authentication credentials for error. Otherwise contact the Open Finance Insights team. |
| 403             | `CLIENT_ERROR`      | Your profile does not currently have access to this product.                                | [Contact us](https://openbankingeu.mastercard.com/contact-us) for more details.                    |
| 429             | `TOO_MANY_REQUESTS` | The number of requests received from you exceeded per second thresholds.                    | Try again. Limit the number of concurrent asynchronous requests.                                   |
| 500             | `SERVER_ERROR`      | An internal system error has occurred.                                                      | Try again after a few seconds.                                                                     |

