This page describes the error responses you might encounter when using the Hirebase API and how to handle them.Documentation Index
Fetch the complete documentation index at: https://www.hirebase.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Error Response Format
All error responses from the Hirebase API follow FastAPI’s standard shape — a single top-leveldetail field. For most errors detail is a string; for request-validation errors (422) it is an array of field-level error objects.
Read error messages from
response.detail — not response.error or response.message. There is no top-level error or message field.Common Status Codes
The request was successful.
The request was malformed or contained invalid parameters.
Authentication is required or the provided credentials are invalid.
The authenticated user does not have permission to access the requested resource.
The requested resource does not exist.
The request was well-formed but contains semantic errors or validation failures.
The client has sent too many requests in a given amount of time (rate limiting).
Something went wrong on the server side. These errors should be reported to the Hirebase team.
Detailed Error Types
Validation Errors (422)
When a request fails validation, the API returns a422 Unprocessable Entity with an array of Pydantic-style field errors under detail:
loc— path to the offending field (e.g.,["body", "salary", "min"]).msg— human-readable explanation.type— machine-readable error category.
Authentication Errors (401)
Rate Limiting Errors (429)
Error Handling Best Practices
Implement Retry Logic
Implement Retry Logic
For transient errors (such as rate limiting or temporary server issues), implement an exponential backoff retry mechanism:
Validate User Input
Validate User Input
Before sending requests to the API, validate user input on the client side to catch common issues:
Centralize Error Handling
Centralize Error Handling
Create a central error handling system in your application to process API errors consistently:
Common Error Scenarios and Solutions
| Error | Possible Cause | Solution |
|---|---|---|
| 400 Bad Request | Malformed JSON or query parameters | Double-check your request format and parameters |
| 401 Unauthorized | Invalid or expired API key | Verify your API key is correct and not expired |
| 404 Not Found | Job or company ID doesn’t exist | Verify the ID is correct and the resource exists |
| 422 Unprocessable Entity | Validation error in request data | Check the error details for specific field issues |
| 429 Too Many Requests | Rate limit exceeded | Implement rate limiting and retry with backoff |
| 500 Internal Server Error | Server-side issue | Contact support with the error details and timestamp |
Getting Help
If you encounter persistent errors or need additional assistance:- Check if the error message provides clear instructions on how to fix the issue
- Consult the documentation for the specific endpoint you’re using
- Contact support at spencer@hirebase.org with:
- The full error message and status code
- The endpoint you were trying to access
- A sample of your request (with sensitive data removed)
- Timestamp of when the error occurred