G
Not authenticated — log in first

Errors

Global error reference for the Glass Next API — status codes, formats, and handling strategies.

What this means in plain English

When something goes wrong, the API returns a clear error response. This page is your reference for understanding every error type and building robust error handling into your integration.

Coming soon

The global error reference is being expanded for vendor, product, and order endpoints. Auth-related errors are documented below.

Standard error format

All API errors return JSON in this structure:

{
  "statusCode": 400,
  "message": "Description of what went wrong",
  "error": "Bad Request"
}

Common status codes

CodeNameWhen it happens
200OKRequest succeeded
201CreatedResource created
400Bad RequestInvalid input or validation failure
401UnauthorizedMissing or invalid authentication
403ForbiddenAuthenticated but not permitted
404Not FoundResource doesn't exist
422Unprocessable EntityValid JSON but business logic rejected
429Too Many RequestsRate limit exceeded
500Internal Server ErrorUnexpected server error

Authentication errors

These errors are returned by POST /api/v1/auth/login:

StatusMessageMeaning
401Invalid credentialsWrong email/password, or account is inactive/suspended
403USER_NOT_VERIFIEDAccount exists but email verification is incomplete
429Rate limit exceededMore than 10 login attempts in 15 minutes

See the Login endpoint reference for full request/response examples.