All error responses follow the GBG standard error format. Every response includes anDocumentation Index
Fetch the complete documentation index at: https://docs.go.gbgplc.com/llms.txt
Use this file to discover all available pages before exploring further.
X-Request-ID header that you can provide to GBG support for troubleshooting.
Error response format
JSON
Error response fields
| Field | Description |
|---|---|
code | Numeric error code (as a string). |
name | Machine-readable error identifier (for example, MISSING_FIELD). |
location | Where the error originated: Body, Authorization, Path, or Service. |
problem | Human-readable description of what went wrong. |
action | What you should do to resolve the error. |
HTTP status codes
The GBG GO API returns standard HTTP status codes to indicate whether a request was successful or failed:- 400 Bad request: The request is invalid or missing required parameters. Check your request body, confirm all required fields are included, and verify the expected data format.
-
401 Unauthorized: The request does not include a valid authentication token, or the token has expired. Include the Bearer token in the
Authorizationheader. If expired, follow the Authentication guide to generate a new one. - 403 Forbidden: The account does not have permission to access the requested resource. Check with your administrator to confirm your account has the correct permissions.
- 404 Not found: The requested resource or endpoint does not exist. Verify you are calling the correct endpoint and check for typos in the URL.
- 405 Method not allowed: The HTTP method used is not supported for this endpoint. Review the API reference to confirm the correct HTTP method.
- 500 Internal server error: Something went wrong on the API server. Retry after a few moments. If the issue persists, contact support.
- 503 Service unavailable: The API service is temporarily unavailable. Wait a few minutes and retry your request.
Troubleshooting steps
If your API request fails, follow these steps to diagnose and fix the issue:-
Check authentication: Confirm you have included a valid Bearer token in the
Authorizationheader. If expired, request a new one using the Authentication guide. - Validate request data: Make sure all required parameters are included and formatted correctly. If unsure about the expected structure, refer to the API reference.
- Confirm the correct endpoint: Double-check the endpoint URL and ensure you are using the correct HTTP method.
-
Read the error response: The
problemandactionfields in the error response tell you exactly what went wrong and how to fix it. Use theX-Request-IDheader value when contacting support. -
Check for service disruptions: If you receive a
500or503error, the API may be experiencing issues. Check the system status page for maintenance notifications. -
Contact support: If the issue persists, reach out to GBG support. Include the
X-Request-ID, request method, endpoint, request body, and full error response to help diagnose the problem.