Errors
MAFINT uses conventional HTTP response codes to indicate the success or failure of an API request. In general:
Codes in the 2xx
range indicate success.
Codes in the 4xx
range indicate an error that failed given the information provided.
Codes in the 5xx
range indicate an error with MAFINT servers (these are rare).
HTTP STATUS CODE SUMMARY | |
---|---|
200 - OK 400 - BAD REQUEST
422 - UNPROCESSABLE ENTITY 502 - SERVER ERRORS
| Everything worked as expected. The request was unacceptable, often due to missing a required parameter. The requested resource doesn't exist. The request cannot be triggered due to the current user has been logout and the token for the current session has been deleted. Something went wrong on MAFINT's end. (These are rare.) |
When HTTP request is successful ( 200 - OK ), the response will returns a error_code
in the body to indicates whether the data is able to retrieve successfully from the server.
RESPONSE BODY ERROR CODE SUMMARY | |
---|---|
0 - SUCCESS 3000 - ERROR
| Everything worked and the data is able to retrieved. The data is not able retrieved due to variety of reasons. (Eg. warning messages before executing certain action/s , MAFINT's end predefined error message, programming errors from MAFINT's end ) |