Types
HTTP statuses
Codes
Requests and parameters
Authentication and limits
Employers and employees
Payrolls
Hammock errors
Handling errors
- Branch on
code, and fall back totypefor codes you don’t know. New codes can be added without a new API version. - Retry
api_error,429and network failures with exponential backoff and the sameIdempotency-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.