Nocnoc uses the following error response structure
Example of Unauthorized request:
{
"code": 401,
"message": "Unauthorized"
}
Example of Invalid request payload:
{
"code": 400,
"message": "Invalid Request Payload."
"errors": [
"Sku should be between 1 character minimum and 45 characters maximum.",
"Brand should be between 1 character minimum and 45 characters maximum."
]
}
| Code | Meaning | Message example |
|---|---|---|
| 200 | OK | |
| 201 | Created | |
| 400 | Bad Request | "Sku already exists." |
| 401 | Unauthorized | "Unauthorized" |
| 404 | Not Found | “Sku not found” |
| 500 | Internal Error | “Internal Server Error” |
