Polyv Help Center

Help Center

Global Error Description

Updated: 2024-10-21 09:33:43

Response Example

Successful API request response:

{
    "code": 200,
    "status": "success",
    "data": ""
}

API request with field validation error response:

{
    "code": 400,
    "status": "error",
    "data": "",
    "error":{"code":'错误码|int类型',"desc":"错误描述"}    
}

API request with business logic error response:

{
    "code": 500,
    "status": "fail",
    "data": "",
    "error":{"code":'错误码|int类型',"desc":"错误描述"}   
}

Field descriptions:

Name Type Meaning
code Integer Response status code, see mapping below
status String Response status text
error Error Response description. When code is 400 or 500, provides additional error details. Refer to the Error Information Reference Table

Error Code Description

code status description
200 success Indicates successful business processing
40X (X is any digit) error Corresponds to HTTP 40X status codes, typically client errors
50X (X is any digit) error Corresponds to HTTP 50X status codes, typically server errors

Detailed Error Information Reference Table

Error Code Error Description
General Error Codes Global common
1000 Parameter error
1001 appId cannot be empty
1002 Timestamp cannot be empty
1003 Signature cannot be empty
1004 Invalid appId
1005 Timestamp expired
1006 Signature error
1007 Not logged in
1008 Request method error
1009
1010 System exception
Business Error Codes Specific business
2000 Instructor does not exist
联系客服,在线咨询