When a request is sent to the server, it will respond to the user's request with HTTP status codes and error codes. Please refer to the table below for more information on the different error codes and messages returned when API calls fail.
Response Example
General
Error Message HTTP Status Code Error Code Succeeded. 200 0 Body can not be empty. 400 50000 Service temporarily unavailable, please try again later. 503 50001 Json data format error. 400 50002 Endpoint request timeout (does not mean that the request was successful or failed, please check the request result). 400 50004 API is offline or unavailable. 410 50005 Invalid Content_Type, please use "application/json" format. 400 50006 Account blocked. 200 50007 User does not exist. 200 50008 Account is suspended due to ongoing liquidation. 200 50009 User ID can not be empty. 200 50010 Requests too frequent. 429 50011 Account status invalid. 200 50012 System is busy, please try again later. 200 50013 Parameter {0} can not be empty. 400 50014 Either parameter {0} or {1} is required. 400 50015 Parameter {0} does not match parameter {1}. 400 50016 Parameter {0} and {1} can not exist at the same time. 200 50024 Parameter {0} count exceeds the limit {1}. 200 50025 System error. 500 50026 No permission to use this API. You need to upgrade your account's payment level. 403 50030 Parameter %s error. 400 50036 Token does not exist. 200 50037 This chain does not currently support. 200 50038 This alert has no history of processing. 200 50039 No data is displayed for this block height. 200 50040 The historical balance of this token is not currently supported. 200 50041 This token protocol type does not support scanning. 200 50042 Your account behavior triggered risk control, and the API function has been frozen. 200 50043 Data already exists. 400 50044 Client operation error. 400 50045 According to regulations, the X Layer API service is not available in your country or region. 400 50047
Authentication
Error Message HTTP Status Code Error Code API frozen, please contact customer service. 400 50100 Timestamp request expired. 401 50102 Request header "OK_ACCESS_KEY" can not be empty. 401 50103 Request header "OK_ACCESS_PASSPHRASE" can not be empty. 401 50104 Request header "OK_ACCESS_PASSPHRASE" incorrect. 401 50105 Request header "OK_ACCESS_SIGN" can not be empty. 401 50106 Request header "OK_ACCESS_TIMESTAMP" can not be empty. 401 50107 Exchange ID does not exist. 401 50108 Exchange domain does not exist. 401 50109 Invalid IP. 401 50110 Invalid OK_ACCESS_KEY. 401 50111 Invalid OK_ACCESS_TIMESTAMP. 401 50112 Invalid signature. 401 50113 Invalid authorization. 401 50114 Invalid request method. 405 50115 Exceeds the range of historical data queries. 400 50117
Business
Error Message HTTP Status Code Error Code Parameter {0} error. 404 51000 The outputAddress you filled in was not found in this transaction. 200 51001 The outputAddress specified by this index does not exist in this transaction. 200 51002 Detail information with this transaction hash has not been found on the blockchain network, and risk status is pending for this transaction. 200 51003
Previous Batch Get Cross-chain Transactions Up next X Layer Developer Documentation