Response codes

Nomos uses standard HTTP codes to indicate the success or failure of your requests.

In general, 2xx HTTP codes correspond to success, 4xx codes are for user-related failures, and 5xx codes are for infrastructure issues.

StatusDescription
200Successful request.
4xxClient error, see Error Codes.
5xxIndicates an error with Nomos servers.

Error Schema

Nomos uses standard HTTP codes to indicate the success or failure of your requests. Below is a list of possible error types you may encounter when using the Nomos API.

Status CodeTypeDescription
400malformedThe request has incorrect syntax, such as an unparseable JSON body.
401unauthenticatedThe request doesn’t have the required credentials.
403permissionDeniedThe authenticated user doesn’t have permissions to perform the request.
404notFoundThe requested resource doesn’t exist.
409conflictThe request conflicts with another request.
422invalidThe request has invalid properties.
429tooManyRequestsThe API user has made too many requests in violation of our API Terms of Service.
500internalAn unexpected error occurred and the result of the request is unknown.
501notImplementedThe operation requested is not supported.

Handling Errors

When an error occurs, the response body will contain additional information about the error. Here is an example of an error response:

Rate limit

The response headers describe your current rate limit following every request in conformance with the IETF standard:

Header nameDescription
ratelimit-limitMaximum number of requests allowed within a window.
ratelimit-remainingHow many requests you have left within the current window.
ratelimit-resetHow many seconds until the limits are reset.
retry-afterHow many seconds you should wait before making a follow-up request.

The maximum number of requests that users can send is 10 requests per second.

After that, you’ll hit the rate limit and receive a 429 response error code.

To prevent this, we recommend reducing the rate at which you request the API. This can be done by introducing a queue mechanism or reducing the number of concurrent requests per second. If you have specific requirements, contact support to request a rate increase.