Data Models
Error Messages
List of the error codes and messages that the CNPJ.ws API can return.
The API can return the following error codes:
| Code | Description |
|---|---|
| 400 | Invalid request |
| 401 | Unauthorized |
| 403 | Access denied |
| 404 | Not found |
| 429 | Too many requests |
| 500 | Internal error |
Below is the standard JSON model:
{
"status": 400,
"title": "Invalid request",
"details": "Invalid CNPJ",
"validation": []
}