Skip to main content

Response Codes

Agave API uses conventional HTTP response codes to indicate the success or failure of an API request:

  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error caused by the information provided (e.g. a required parameter was omitted).
  • Codes in the 5xx range indicate an error with the Source System or Agave's servers (these are rare).

Agave API standardizes all errors returned from Source Systems, allowing you to only need to account for one form of error management in your application.

Status CodeResponse TypeDescription
200OKEverything worked as expected.
201CreatedA new resource was created.
204No ContentNo content to return (typically when a resource is deleted).
400Bad RequestThe request was unacceptable, often due to missing a required parameter.
401UnauthorizedNo valid API key provided, or the API key doesn't have permissions to perform the request.
403ForbiddenNo valid API key provided, or the API key doesn't have permissions to perform the request.
404Not FoundThe requested resource doesn't exist.
409ConflictThe request conflicts with another request (perhaps due to using the same idempotent key).
429Too Many RequestsToo many requests hit the API too quickly, and the Source System rejected the request. See Rate Limits.
500Internal Server ErrorSomething went wrong on Agave's end or with the Source System's API.
503Service UnavailableSomething went wrong on Agave's end or with the Source System's API.