Errors

WuanLife使用传统的HTTP响应代码来指示API请求的成功或失败。

HTTP status code summary
Status Description
200 - OK Everything worked as expected.
400 - Bad Request The request was unacceptable, often due to missing a required parameter.
401 - Unauthorized for missing or invalid authentication token.
403 - Forbidden The request was a legal request, but the server is refusing to respond to it.
404 - Not Found The requested resource doesn't exist.
422 - Unprocessable Entity The request was a legal request, but the server is refusing to respond to it.
Example Response
200
{
    "success": "操作成功"
}

4XX
{
    "error": "操作失败"
}

results matching ""

    No results matching ""