Malga makes available a well-defined list of error codes to facilitate the identification of the different types of problems that may occur during the integration.
Through this error specification it is possible to identify the errors that occur when a request is processed with authorization failure, or when it is rejected due to a functional error. The possible HTTP error categories are:
• (2xx) unauthorized; • (4xx) problem with the content of the request; • (5xx) internal error; • communication failure or timeout;
For unauthorized transactions that are rejected by the sender, Malga provides a standardized return code and a recommendation on how you should proceed with major errors.
|Type||HTTP code||Description||what to do|
|api_error||500||Unexpected error||Please contact Malga’s support|
|bad_request||400||Error validating the data sent in the request||Check error detail|
|invalid_request_error||400||Error while processing based on data sent request||Check error detail|
|card_declined||200||Transaction not approved by the provider||Check the reason for rejection in the declined_code|