Error object & codes
Error code structure & errors codes reference
Generic structure of error response
All error responses returned by the service will be structured as below:
{
"timestamp": "2022-07-28T22:25:51.000Z",
"httpStatusCode": "400",
"httpStatusMessage": "REQUEST_VALIDATION_ERROR",
"errorCode": "APPLICATION_ERROR_CODE",
"errorMessage": "Une erreur est survenue",
"requestMethod": "POST",
"requestURI": "/v1/subscriptions"
}
When the payload validation of a request fails according to the swagger, the API gateway returns an error response "422 Unprocessable Entity" that will be structured as below:
{
"timestamp": "2022-07-28T22:25:51.000Z",
"path": "/baas/prod/e-financing/api/v1/subscriptions",
"status": "422",
"error": "Unprocessable Entity",
"message": "[Code: 1028 | Message: $.solutionCode: is missing but it is required | path: $]",
"requestId": "/v1/subscriptions",
"traceId":"67af665252525252552525225b070"
Payload validation fails according to the API swagger in the following cases:
A required field is missing.
A string field's value length exceeds the maximum length.
The field has an incorrect type according to the Swagger definition.
The number of items in the array exceeds the maximum size.
Standard http status codes
API standard error codes
e-financing error codesInsurance error codesWebhook error codesLast updated
Was this helpful?