Skip to content

How to Troubleshoot API Errors

You’re integrating with HARi’s API and receiving error responses.

CodeMeaningTypical cause
401UnauthorizedMissing or expired access token
403ForbiddenToken is valid but lacks permission for this action
404Not FoundInvalid endpoint URL or record does not exist
422Validation ErrorRequest body has invalid or missing required fields
429Too Many RequestsRate limit exceeded
500Server ErrorUnexpected server-side issue
  1. Verify your access token is included in the Authorization: Bearer <token> header.
  2. Check if the token has expired. Access tokens have a limited lifetime — use the refresh token endpoint to get a new one.
  3. Ensure the token was generated for the correct environment (development vs. production).
  1. The token is valid but the associated user profile doesn’t have permission for this entity or action.
  2. Ask your administrator to check the API user’s profile permissions.
  1. Double-check the endpoint URL. Common mistakes: missing /api/ prefix, wrong entity name, typo in the record ID.
  2. If requesting a specific record, verify the record exists and hasn’t been deleted.
  1. Read the response body — it contains specific field-level error messages.
  2. Ensure all required fields are included in your request body.
  3. Verify data types: dates must be YYYY-MM-DD, numbers must not be strings, lookup fields must reference valid IDs.
  1. Reduce the frequency of your API calls.
  2. Implement exponential backoff in your integration code.
  3. For bulk operations, use the batch endpoints instead of individual calls.

Include the full error response body and the request you sent (with sensitive data redacted) when contacting support. The response body contains detailed error information that helps pinpoint the issue.