Skip to main content

Response Format

All API responses follow a consistent JSON structure, making it easy to parse and handle responses in your application.

Success Responses

Successful requests return a 200 status code with the requested data:

Error Responses

Failed requests return an appropriate error status code with detailed error information:
Always include the request_id when contacting support. This helps us quickly locate and troubleshoot your specific request.

HTTP Status Codes

The GameBoost API uses standard HTTP status codes to indicate the success or failure of requests.

Success Codes

Client Error Codes

These errors indicate issues with your request or authentication

Server Error Codes

These errors indicate issues on our servers or infrastructure

Error Response Examples

401 Unauthorized

Cause: Missing or invalid authentication credentials.
How to fix: Ensure you’re including a valid API key in the Authorization header. See our Authentication Guide.

403 Forbidden

Cause: You don’t have permission to access this resource.
How to fix: Verify the resource you’re trying to access belongs to you.

404 Not Found

Cause: The requested resource doesn’t exist or you don’t have access to it.
How to fix: Double-check the resource ID in your request. Ensure the resource exists and you have access to it.

422 Unprocessable Entity

Cause: Request validation failed due to invalid data.
How to fix: Review the errors object and correct the specified fields.

429 Too Many Requests

Cause: You’ve exceeded the API rate limit.
How to fix: Implement exponential backoff and respect the Retry-After header. See our Rate Limiting Guide.

500 Internal Server Error

Cause: An unexpected error occurred on GameBoost’s servers.
How to fix: This is an issue on our end. Try again in a few moments. If the problem persists, contact us with the request_id.

503 Service Unavailable

Cause: The API is temporarily unavailable, usually due to maintenance.
How to fix: Wait for the specified Retry-After seconds and try again. Check our status page for updates.

Handling Errors

Best Practices

Don’t rely solely on the presence of data in the response. Always check the HTTP status code to determine if the request was successful.
Extract useful information from error responses to provide better feedback to users or for debugging.
For transient errors (5xx status codes), implement retry logic with exponential backoff.
Always log the request_id from error responses. This is invaluable when contacting support.

Response Headers

All API responses include helpful headers for debugging and rate limiting:
Monitor the X-RateLimit-Remaining header to implement proactive rate limiting in your application.

Next Steps

Rate Limiting

Learn how to handle rate limits effectively

Webhooks

Set up real-time event notifications

API Reference

Explore all available endpoints

Authentication

Review authentication setup