Errors
Every reason the API refuses a request, with its status code, error code and how to fix it.
When the API refuses a request because of your API key, plan, balance or domain whitelist, it answers with a status code and a JSON body naming the reason:
{
"error": "Your account has no active akamai plan and no pay-as-you-go balance.",
"code": "no_plan_or_balance",
"docs": "https://docs.hypersolutions.co/api-reference/errors#no_plan_or_balance"
}erroris a readable message. The SDKs show it as the error text, for exampleAPI returned with error: Your account has no active akamai plan and no pay-as-you-go balance.codeis stable. Match on it rather than on the message, which can be reworded.docslinks to the entry for that code on this page.
401
The credentials are missing or wrong: API key, organization key or signature.
402
The key is valid but there is no plan or pay-as-you-go balance to serve the request.
403
The key is valid but not allowed to make this request: disabled, product or domain.
Errors about the request body itself (for example a missing pageUrl) are documented on each product's API reference page.
401: credentials
missing_api_key
The request has no x-api-key header. Add it with your API key, see Authentication.
malformed_api_key
The x-api-key header is not an API key. API keys are UUIDs (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx); check that the whole key was copied without spaces or quotes.
invalid_api_key
No API key with this value exists. Copy the key again from hypersolutions.co/keys.
missing_signature
The key has JWT signing enforced but the request has no x-signature header. Generate one as shown in Authentication.
invalid_signature
The x-signature header does not verify. The message says why, for example an expired token: signatures are short-lived, so generate a fresh one for every request, signed with the key's JWT secret and with the API key in the key claim.
missing_app_signature
The request has an x-app-key header but no x-app-signature. Organization requests need both, see Authentication.
This code, invalid_app_key, invalid_app_signature and not_organization_member are also returned by the Usage API when it is called with organization headers.
invalid_app_key
No organization has this x-app-key.
invalid_app_signature
The x-app-signature header does not verify against the organization's app secret, or it has expired.
402: plan and balance
A request is served from an active plan for the product it calls, or else from your pay-as-you-go balance. These codes say which of the two ran out.
no_plan_or_balance
Your account has no active plan for this product and no pay-as-you-go balance. This is also the answer when you have a plan for a different product only, for example a DataDome plan used for Akamai requests. Buy a plan for the product or top up your balance at hypersolutions.co.
plan_exhausted
Your plan for this product has used all of its requests and there is no pay-as-you-go balance to continue with. Upgrade the plan, wait for it to renew, or top up your balance.
plan_expired
Your plan for this product has expired and there is no pay-as-you-go balance to continue with. Renew the plan or top up your balance.
balance_exhausted
Your pay-as-you-go balance is used up and there is no active plan for this product. Top up your balance or buy a plan.
balance_expired
Pay-as-you-go balance is valid for one year after purchase, and what is left of yours is older than that. There is no active plan for this product. Top up your balance or buy a plan.
403: access
api_key_disabled
The API key is disabled. Enable it or create a new one at hypersolutions.co/keys.
product_not_enabled
You have a plan or balance, but your account does not have access to this product. Contact support to enable it.
not_organization_member
The request has an organization's x-app-key, but the account the API key belongs to is not a member of that organization.
organization_product_not_enabled
The organization in x-app-key does not have access to this product.
no_domains_whitelisted
Your account (or, with organization headers, the organization) has no whitelisted domains for this product, so no target site is allowed. Domains are whitelisted per product: a domain whitelisted for one product does not count for another. Request a domain whitelist for this product from the dashboard.
domain_not_whitelisted
The target domain is not on your whitelist for this product. The message names the domain that was checked, taken from the page URL in the request, for example Domain "www.example.com" is not whitelisted for this API key.
Two things to check:
Product: domains are whitelisted per product, so a domain whitelisted for Akamai is not whitelisted for Kasada.
Exact domain: whitelisting
example.comdoes not coverwww.example.com. A wildcard like*.example.comcoversexample.comitself and every subdomain of it.
Make sure the domain in the message is on your whitelist for the product you are calling, or request it from the dashboard.
access_denied
The request was refused but the reason could not be determined at that moment, for example right after a purchase while your access is being updated. Retry after a few seconds. If it persists, contact support with the time of the request.
Last updated

