menu

常见错误

更新时间: 2019-12-24 18:10:38 · 编辑者:宇链科技

宇链云将根据不同的请求内容返回不同的HTTP状态码,为了方便开发者定位错误,无论是哪种错误对应的HTTP状态码,都会附带响应body。

body格式

{
  "error": "参见下文【错误名称】",
  "code": "参见下文【错误代码】",
  "msg": "每个错误的详细描述,根据调用情况动态生成,下文不再列出",
  "status": "success|fail",
  "traceId": "错误追踪编号,随工单提交能加快处理速度"
}

错误类型

HTTP状态码 错误代码 错误名称
404 E0640001 notFound
429 E0640002 httpApi_request_exceed_rate_limit
401 E0640003 httpApi_invalid_signature
401 E0640004 httpApi_invalid_timestamp
401 E0640005 httpApi_invalid_appid
400 E0C80001 merchant_login_invalid_credentials1
400 E0C80002 merchant_login_invalid_credentials2
401 E0C80003 merchant_no_loginToken
401 E0C80004 merchant_invalid_token
500 E0C80005 merchant_refund_error
429 E0C80006 merchant_duplicate_payment
400 E0C80007 merchant_unionpay_error
400 E0C80008 merchant_mismatch
400 E0C80009 merchant_profitsharing_exceed_limit
400 E0C8000A merchant_invalid_paymentchannel_params
400 E0C8000B merchant_invalid_paymentchannel_params2
400 E0C8000C merchant_invalid_paymentchannel_params3
400 E0C80009 prepaidId_invalid_state
500 E1F40001 internal_server_error
400 E12C0001 invalid_parameter
403 E12C0002 no_access_permission
400 E12C0003 parameter_out_of_range
500 E12C0004 assert_error
400 E12C0005 exceed_size_limitation
400 E12C0006 input_exceed_precision
500 E12C0007 busy_error
400 E12C0008 duplicate_entity
500 E19A0001 sending_sms_was_failed
400 E1A40001 upload_to_chain_item_bussiness_id_is_duplicate
400 E1A40002 invalid_evtlink
500 E1A40003 blockchain_request_error
500 E1A40004 blockchain_pending_error