The Watercress API uses HTTP status code to indicate the success of the API request. The following table shows the possible HTTP status code and what it means
Status code |
Meaning |
Description |
200 |
Ok |
Request succeeded |
201 |
CREATED |
Created successfully |
202 |
ACCEPTED |
Update successful |
400 |
Bad REQUEST |
The requested address does not exist or contains unsupported parameters |
401 |
Unauthorized |
Not authorized |
403 |
FORBIDDEN |
Access is forbidden |
404 |
Not FOUND |
The requested resource does not exist |
500 |
INTERNAL SERVER ERROR |
Internal Error |
Generic error codes, specific products are given by the specific product API documentation.
Error code |
Error message |
Meaning |
Status code |
999 |
Unknow_v2_error |
Unknown error |
400 |
1000 |
Need_permission |
Require permissions |
403 |
1001 |
Uri_not_found |
Resource does not exist |
404 |
1002 |
Missing_args |
Parameter not complete |
400 |
1003 |
Image_too_large |
The uploaded picture is too big |
400 |
1004 |
Has_ban_word |
Enter a prohibited word |
400 |
1005 |
Input_too_short |
The input is empty, or the input word is not enough |
400 |
1006 |
Target_not_fount |
The related object does not exist, such as when replying to a post, found that the group was deleted |
400 |
1007 |
Need_captcha |
Need verification code, wrong verification code |
403 |
1008 |
Image_unknow |
Unsupported picture formats |
400 |
1009 |
Image_wrong_format |
Incorrect photo format (only jpg,jpeg,gif,png or BMP supported) |
400 |
1010 |
Image_wrong_ck |
Access private picture CK validation Error |
403 |
1011 |
Image_ck_expired |
Access private picture CK expired |
403 |
1012 |
Title_missing |
The topic is empty |
400 |
1013 |
Desc_missing |
Description is empty |
400
|
Watercress RESTful API status and error codes