Skip to main content
The KarmaCheck API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, a 2xx status code indicates success, a 4xx status code indicates an error based on the information provided, and a 5xx status code indicates an error with KarmaCheck servers.

HTTP status codes

Errors

Errors are returned as JSON-based messages. Most 4xx responses include an error message that briefly explains the error, which can be handled programmatically. The following sections provide examples of different types of error responses.

400 Bad Request

Your request body has one of the following issues:
  • A required field is missing.
  • A field contains the wrong format or data type.
For example, you want to find relevant jurisdictions for a county, but didn’t provide the state:

403 Forbidden

You don’t have permission to access a specific resource:

404 Not Found

The resource (for example, a case) associated with the ID provided in the path parameter doesn’t exist:

409 Conflict

A request to create a case includes an email address associated with a candidate who is already the subject of an existing case within the same group:
To create a new case associated with the same candidate, resend the request with orderOverride in the request body. Depending on the value provided (add or replace), a successful request results in one of the following:
  • The new case is created in addition to the existing case.
  • The existing case is archived, and the new case is created.

422 Unprocessable Entity

The request contains data that fails validation. For example, a request to create a case using the PII entry flow is missing required candidate information:
The request doesn’t align with business logic. For example, you can’t resend the invitation associated with a case if a candidate has already begun the onboarding process: