/
Errors

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

HTTP STATUS CODE SUMMARY

200 - OK

400 - BAD REQUEST


404 - NOT FOUND

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

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 )

Related content

MAFINT Public REST API Document
MAFINT Public REST API Document
More like this
Stock Details
Stock Details
Read with this
Generate New API Token
Generate New API Token
More like this
错误 ( 状态代码 )
错误 ( 状态代码 )
More like this
MAFINT开放式REST API文档
MAFINT开放式REST API文档
More like this
MAFLink token failure case
MAFLink token failure case
More like this