Error Responses
Error Responses
Section titled “Error Responses”This section describes the standard error responses returned by the Trust2Connect API. Each error response includes an HTTP status code, an error type, and a descriptive message to help you diagnose and resolve issues quickly.
Invalid Request (400)
Section titled “Invalid Request (400)”Occurs when a required parameter is missing or an invalid value is provided. Refer to the API documentation for required parameters for each endpoint.
Sample Error Response:
Section titled “Sample Error Response:”{ "error": "invalid_request", "error_description": "Unsupported grant type : oauth"}Unauthorized (401)
Section titled “Unauthorized (401)”Occurs when authentication fails or the access token is missing or expired. Ensure your token is included in the request header and is still valid.
Sample Error Response:
Section titled “Sample Error Response:”{ "error": "expired_token", "error_description": "Access token has expired."}Not Found (404)
Section titled “Not Found (404)”Occurs when the requested resource does not exist. Verify the endpoint URL and resource identifiers.
Sample Error Response:
Section titled “Sample Error Response:”{ "error": "not_found", "error_description": "Resource not found."}Internal Server Error (500)
Section titled “Internal Server Error (500)”Occurs when an unexpected error happens on the server. If this persists, please contact Trust2Connect support for assistance.
Sample Error Response:
Section titled “Sample Error Response:”{ "error": "internal_server_error", "error_description": "An internal server error occurred."}