Mixedbread

Status Codes

A comprehensive guide to API status codes used in Mixedbread's responses. Learn about common codes, their meanings, and best practices for error handling and debugging to optimize your API integration experience.

Status codes in API responses indicate success or failure. This guide explains common codes and how to handle them, helping you troubleshoot API issues effectively.

Common Status Codes

CodeMeaningDescription
200OKRequest successful. Response contains requested data.
401UnauthorizedMissing or invalid auth credentials, or insufficient user permissions.
402Payment RequiredValid request, but account needs balance top-up or valid payment method.
403ForbiddenUser lacks necessary permissions for the requested resource.
404Not FoundRequested resource doesn't exist or can't be found at the given URL.
422Validation ErrorIssue with request parameters. Check input and retry.
429Too Many RequestsRate limit exceeded. Response includes retry timing info.
500Internal Server ErrorUnexpected server-side error. Retry later.
503Service UnavailableTemporary service outage. Retry later.
504Gateway TimeoutServer response timeout. Possible network issues or overload. Retry later.

Error Handling Best Practices

  1. Always check the status code before processing the response body.
  2. Implement retry logic for 5xx errors and 429 responses.
  3. Log detailed error information for debugging, including request parameters and full error responses.
  4. Use appropriate error messages in your app's UI to guide users.
  5. Handle authentication errors (401) by prompting for re-authentication or refreshing tokens.

Debugging Tips

  • For 4xx errors, carefully review your request parameters and authentication.
  • For 5xx errors, check our status page for any known issues before contacting support.

For more detailed information on specific errors or advanced error handling strategies, refer to our API reference documentation or contact our developer support team.

On this page