flowawsome@flowaws/node-sdk

Errors

Every error response has the same three fields, whatever the endpoint:

{
  "code": "INVALID_CREDENTIALS",
  "message": "Invalid credentials",
  "docs_url": "https://dev.flowawsome.com/errors/invalid-credentials"
}

400 Bad Request

The request was rejected as sent. Fix the request body, query, or path parameters before retrying; sending the same request again will fail the same way.

401 Unauthorized

The credential is missing, invalid, or expired. Refresh the session or sign in again for bearer tokens; check the X-Api-Key value for API keys.

403 Forbidden

The caller is authenticated but not allowed to do this (role, key type or scope, or an organization policy). Retrying without changing the credential or the configuration will not help.

404 Not Found

The resource does not exist, or it is not visible to this caller. Check the identifier and that it belongs to the organization the credential is for.

409 Conflict

The request conflicts with the current state of the resource. Re-read the resource, then decide whether to change the request.

422 Unprocessable Entity

The request is well-formed but cannot be carried out with the current configuration (for example, no approver could be resolved). Fix the configuration, then retry.

429 Too Many Requests

A rate limit was hit. Wait before retrying; when a Retry-After header is present, wait at least that many seconds.

500 Internal Server Error

Something failed on our side. Retry with exponential backoff; if it keeps happening, contact support with the time of the request.

503 Service Unavailable

The service is temporarily unavailable. Retry with exponential backoff.