API Errors & Status Codes

FinImpulse API error reference: HTTP response codes, internal status codes, and how to retrieve the full error list via the errors endpoint.

The FinImpulse API uses a combination of standard HTTP response codes and internal status codes to communicate the result of each request.

We recommend recording error-related information in your application logs and implementing a robust mechanism for handling exceptions or error conditions.

Failed requests, along with their status codes and messages, are also listed API Errors page in the FinImpulse dashboard. For details, see the API Errors page guide.

HTTP Response Codes

CodeMessageDescription
200OKThe request was successfully processed.
400Bad RequestThe request contains invalid parameters or a malformed JSON body.
401UnauthorizedThe request is missing a valid Bearer token or the token has expired.
See the API Tokens Management & Security Guide for details.
402Payment RequiredYour account has insufficient funds or billing issues.
403ForbiddenThe request originated from an IP address not whitelisted for this API token.
See the IP Whitelisting Guide for details.
404Not FoundThe requested endpoint or resource does not exist. Verify the request URL.
429Too Many RequestsThe rate limit or the monthly request allowance has been exceeded.
Check the internal status code for details. 
500Internal Server ErrorThe server encountered an unexpected condition. Retry later.

Internal Status Codes and Messages

Along with HTTP response codes, the system also generates internal status codes, which are returned in the status_code and status_message fields of the API response.

CodeMessageDescription
20000OkThe request was processed successfully.
40000Validation failedThe request contains invalid data or is missing required fields.
40001Invalid JSON bodyThe request body is not valid JSON or could not be parsed. 
40100UnauthorizedThe provided Bearer token is missing, invalid, or expired.
40200Insufficient balanceThe account does not have sufficient funds to complete this request.
40300Access forbiddenThe request originated from an IP address not whitelisted for this API token.
40301Not available on your planThe requested endpoint or dataset is not included in your current plan.
Upgrade your plan to access it.
40400Not foundThe requested resource could not be found. Check the request URL.
42900Rate limit exceededThe number of requests per minute has been exceeded.
Reduce request frequency.
42901Daily credit limit exceededThe daily usage limit for API calls or credits has been reached.
42902Monthly quota exceededThe monthly request allowance has been used up,
and extra usage is unavailable, disabled, or has reached its spending limit.
Requests resume when the allowance renews.
50000Internal server errorAn unexpected server-side error occurred. Please contact support.
50001Subscription plan is
misconfigured
The subscription plan assigned to your account is not configured correctly.
Please contact support.

Note that status messages may provide additional context in the API response and can vary depending on the conditions that triggered them.

Errors Endpoint

You can retrieve the full list of internal error codes by calling the Errors endpoint. Requests to this endpoint are free and do not count toward your monthly allowance.

Request

GET
v1/errors
Example Request
curl --location "https://api.finimpulse.com/v1/errors" \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <API_TOKEN>"
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;

var client = new HttpClient();
var url = "https://api.finimpulse.com/v1/errors";

client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "<API_TOKEN>");
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.finimpulse.com/v1/errors",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "Authorization: Bearer <API_TOKEN>"
  ]
]);

$response = curl_exec($curl);
curl_close($curl);

echo $response;
import urllib.request
import json

url = "https://api.finimpulse.com/v1/errors"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <API_TOKEN>"
}

req = urllib.request.Request(url, headers=headers, method="GET")

with urllib.request.urlopen(req) as response:
    result = json.loads(response.read().decode("utf-8"))
    print(result)
const https = require('https');

const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer <API_TOKEN>'
  }
};

const req = https.request('https://api.finimpulse.com/v1/errors', options, (res) => {
  let body = '';
  res.on('data', chunk => body += chunk);
  res.on('end', () => console.log(JSON.stringify(JSON.parse(body), null, 2)));
});

req.on('error', (e) => console.error(e));
req.end();

Response

result array

Array of objects.

Each object describes one internal status code with the following fields:

  • code - Internal status code of the error (integer).
  • message - Description of the error (string).
Example Response
{
    "result": [
        {
            "code": 20000,
            "message": "Ok"
        },
        {
            "code": 40000,
            "message": "Validation failed"
        },
        {
            "code": 40001,
            "message": "Invalid JSON body"
        },
        {
            "code": 40100,
            "message": "Unauthorized"
        },
        {
            "code": 40200,
            "message": "Insufficient balance"
        },
        {
            "code": 40300,
            "message": "Access forbidden"
        },
        {
            "code": 40301,
            "message": "Not available on your plan"
        },
        {
            "code": 40400,
            "message": "Not found"
        },
        {
            "code": 42900,
            "message": "Rate limit exceeded"
        },
        {
            "code": 42901,
            "message": "Daily credit limit exceeded"
        },
        {
            "code": 42902,
            "message": "Monthly quota exceeded"
        },
        {
            "code": 50000,
            "message": "Internal server error"
        },
        {
            "code": 50001,
            "message": "Subscription plan is misconfigured"
        }
    ]
}