TTC | W-SYNC
    • Introduction
    • Authentication
    • Error Handling
    • Tickets
      • Online Booking
        POST
      • Get Ticket
        GET
      • List Tickets
        GET
      • Search Tickets
        GET
    • Notification Webhooks
      • Webhooks
    W-SYNC

    Error Handling

    TTC | W-SYNC uses HTTP response codes to indicate the success or failure of an API request.
    In general:
    Codes in the 2xx range indicate success.
    Codes in the 4xx and 5xx range indicates an error.
    In addition to the HTTP Code returned when an error occurs, we also return an error code enum along with a short description to help you figure out what went wrong and to build your app accordingly.
    Status CodeError CodeDescription
    2xx-Everything worked as expected. No errors here.
    400 Bad Requestbad_requestSeveral types of invalid requests return bad_request. See the message attribute for more information.
    401 Unauthorizedauthentication_failureMissing valid authentication credentials (e.g. no Authorization header).
    403 Forbiddennot_authorizedAn attempt was made to perform an unauthorized action.
    404 Not Foundnot_foundThe requested resource doesn’t exist.
    5xx-Something went wrong on our end. (These are rare.)
    Modified at 2026-05-19 04:54:23
    Previous
    Authentication
    Next
    Tickets
    Built with