HTTP Status Codes
400 Bad Request
Returned when variables are missing or the request is malformed.401 Unauthorized
Returned when the access token is missing or invalid.403 Forbidden
Returned when the provided token is expired or does not have sufficient permissions.422 Unprocessable Entity
Returned when the request is well-formed but contains semantic errors or violates business rules (e.g., validation failures).429 Too Many Requests
Returned when the request frequency exceeds the allowed rate limit.500 Internal Server Error
Returned when an unexpected error occurs on the Talview server.502 Server Timed Out
Returned when an upstream service did not respond in time.Business Logic Errors
In GraphQL, a business rule violation may return an HTTP 200 OK status, but thesuccess field within the data block will be false.
Common Logical Error Codes
These specific strings are often returned within theerror_message field or GraphQL extensions block to provide granular detail:
| Error | Description | Resolution |
|---|---|---|
VALIDATION_ERROR | Input data failed schema or logic checks. | Review input parameters and constraints. |
SLOT_UNAVAILABLE | The selected time slot is no longer available. | Refresh slot availability and select a new slot. |
BOOKING_NOT_FOUND | The provided Booking ID does not exist. | Verify the Booking ID is correct. |
RESCHEDULE_NOT_ALLOWED | Reschedule request violates business policy. | Check reschedule eligibility windows. |
PAYMENT_REQUIRED | Payment is required before the action can proceed. | Process the required payment transaction. |
IDENTITY_VERIFICATION_FAILED | Identity documents or photo failed verification. | Review document quality and retry. |
Best Practices
- Check
successfirst: Always evaluate thesuccessboolean before attempting to access thedataobject. - Handle Actionable Errors: Display the
error_messagedirectly to users for errors likeSLOT_UNAVAILABLE. - Token Management: Automatically handle 401/403 errors by refreshing the OAuth2 access token.
- Logging: Log the
traceIdprovided in the error response to assist Talview support in debugging.

