Skip to main content
The Plugchoice API uses standard HTTP status codes and returns JSON error responses.

Error response format

All error responses include a message field:
Validation errors (422) include field-level details in the errors field:

HTTP status codes

Common error scenarios

Authentication errors (401)

Returned when no token is provided or the token is expired/revoked:

Authorization errors (403)

Returned when the authenticated user lacks permission for the requested action:

Charger timeout (504)

Some charger actions communicate with the physical charger in real-time. If the charger doesn’t respond within the timeout period, a 504 is returned:
This does not necessarily mean the action failed - the charger may still execute the command.