Status codes

Fiant uses conventional HTTP response codes to indicate the success or failure of an API request.
In general, codes in the 2xx range indicate success. Codes in the 4xx range indicate an error.
Codes in the 5xx range indicate an error with Fiant servers (these are rare and should not happen).

The following table details the meaning of the various codes that can be returned by the API:

CodeShortDescription
200OKEverything worked as expected.
201CreatedThe request has been fulfilled and has resulted in one or more new resources being created.
202AcceptedThe request has been accepted for processing, but the processing has not been completed. You might get a response back on your Webhook eventually.
400Bad RequestThe request was unacceptable, often due to missing a required parameter.
401UnauthorizedNo valid Signature or Token provided.
402Request FailedThe parameters were valid but the request failed.
403ForbiddenThe Client or the Token doesn't have permissions to perform the request.
404Not FoundThe requested resource doesn't exist.
422Unprocessable entityOne of these 2 cases: More information about the User is needed in order to approve the transaction. There is no approved assessment for this user that enables him to perform the operation
409ConflictThe request conflicts with another request (perhaps due to using the same REQUEST ID twice).
429Too Many RequestsToo many requests hit the API too quickly. We recommend an exponential backoff of your requests.
5xxServer ErrorsSomething went wrong on PTI servers. (These are rare and should not happen)