Skip to main content

Error Response Format

All JobHive API errors follow a consistent JSON structure to help you handle them programmatically:

HTTP Status Codes

JobHive uses standard HTTP status codes to indicate the success or failure of API requests:

Common Error Types

Authentication Errors (401)

Solution: Add the Authorization header to your request

Validation Errors (400/422)

Solution: Include all required fields in your request

Rate Limiting (429)

Headers included in rate limit responses:

Resource Errors (404/409)

Error Handling Patterns

Basic Error Handling

Retry Logic with Exponential Backoff

Circuit Breaker Pattern

Implement a circuit breaker to handle sustained failures gracefully:

Error Recovery Strategies

Graceful Degradation

Error Monitoring and Alerting

Best Practices Summary

Proactive Error Handling

Implementation Checklist
  • Validate input data before API calls
  • Implement retry logic with exponential backoff
  • Use circuit breakers for sustained failures
  • Monitor error rates and patterns

User Experience

UX Considerations
  • Provide clear error messages to users
  • Implement graceful degradation
  • Show loading states during retries
  • Offer alternative actions when possible

Monitoring & Alerting

Observability Setup
  • Log all errors with context
  • Set up alerts for critical errors
  • Track error trends over time
  • Generate regular error reports

Recovery Strategies

Resilience Patterns
  • Queue failed requests for retry
  • Implement manual fallback processes
  • Use multiple API keys for redundancy
  • Plan for maintenance windows
Error Prevention: The best error handling strategy is preventing errors in the first place. Always validate input data, test thoroughly, and monitor your integration continuously.
Support Resources: For persistent issues, contact our support team at dev-exec@jobhive.ai with your request IDs and error logs for faster resolution.