Error Codes
If you encountered some error in your API and SDK calls, chances are there is an "error code" in the response message. Have a look at the error codes to know more and head to the bottom of the page to handle errors programmatically:
API Errors
401 API key not provided / banned
Cause: Invalid Authentication
Cause: You are banned from using Gooey.AI’s API
402 Payment Required
Cause: Insufficient credits
403 Invalid API Key
Cause: The requesting API key is not correct.
422 Validation Error
Cause: Your request was malformed or missing some required parameters, such as a token or an input.
429 Too Many Requests
500 Internal Server Error
Cause: Issue on our servers.
Handling Errors
We recommend that you programmatically handle errors. Here is an example to ensure that you can get the error codes in your console/environment
In the code snippet below the line if (!response.ok) { throw new Error(response.status); }
provides the error codes in your console/environment.
Last updated