Error response format
All error responses include amessage field:
errors field:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How the Plugchoice API communicates errors and HTTP status codes.
message field:
{
"message": "The given data was invalid."
}
errors field:
{
"message": "The given data was invalid.",
"errors": {
"name": ["The name field is required."],
"email": ["The email must be a valid email address."]
}
}
| Code | Description |
|---|---|
200 | OK - Request succeeded |
201 | Created - Resource created successfully |
204 | No Content - Request succeeded with no response body (e.g., deletes) |
400 | Bad Request - Malformed request |
401 | Unauthorized - Missing or invalid authentication token |
403 | Forbidden - Valid token but insufficient permissions |
404 | Not Found - Resource does not exist |
422 | Unprocessable Entity - Validation errors in request body |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Unexpected server error |
504 | Gateway Timeout - The charger could not be reached in time |
{
"message": "Unauthenticated."
}
{
"message": "This action is unauthorized."
}
{
"message": "Unable to communicate with the charger. Please check the connection and try again."
}