Skip to main content
Hammock uses standard HTTP status codes, and every error response has the same body.

Types

HTTP statuses

Codes

Requests and parameters

Authentication and limits

Employers and employees

Payrolls

Hammock errors

Handling errors

  • Branch on code, and fall back to type for codes you don’t know. New codes can be added without a new API version.
  • Retry api_error, 429 and network failures with exponential backoff and the same Idempotency-Key.
  • Don’t retry other invalid_request_errors unchanged. The same request fails the same way.
  • Log request_id. It’s the fastest way for us to find what happened.