Skip to content
Browse all functions

Simulate not Enough Credits for Api Key

1001fx/notenoughcredits

notenoughcredits (Simulate not Enough Credits for Api Key) is a 1001fx API function in the group 1001fx account: POST https://api.1001fx.com/1001fx/notenoughcredits, 0 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

0 credits per callHTTP APIn8nMake

To set up error handling, this function simulates the not enough credits error.

Try it in the 1001fx app

Run notenoughcredits in your browser with your API key – fill the form, click Run and get the answer or the file.

notenoughcredits in the 1001fx app: the form with example values
Simulate not Enough Credits for Api Key in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/1001fx/notenoughcredits
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json (no body)

Parameters

This function has no parameters.

Examples

Not enough credits

Answers with HTTP 402, like every function when your credits run out.

Input

Expects a json body
{}

Output · HTTP 402

Response
{
  "statusCode": 402
}
Show curl command
curl -X POST 'https://api.1001fx.com/1001fx/notenoughcredits' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{}'

Try notenoughcredits now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.010.01.2023created
Ask 1001fx