Powerdrill Enterprise uses standard HTTP response codes to indicate the result of an API request. In general, codes in the 2xx range indicate success; codes in the 4xx range indicate client-side errors (for example, invalid arguments); codes in the 5xx range indicate server-side errors (these are rare).


API errors

CodeMeaning
400 Bad RequestInvalid parameters provided.
401 UnauthorizedInvalid API key.
402 Request FailedThe parameters were valid, but the request couldn’t be completed.
403 ForbiddenThe API key lacks the necessary permissions to perform this action.
404 Not FoundThe requested resource doesn’t exist.
409 ConflictThe request conflicts with another (for example, using the same idempotent key).
429 Too Many RequestsToo many requests sent in a short time. We recommend implementing exponential backoff.
500, 502, 503, 504 Server ErrorsSomething went wrong on Powerdrill’s end (rare).

Error types

Error typeDescription
authentication_errorAn authentication error indicates your API key is invalid, expired, or revoked. This could be caused by a typo, formatting mistake, or a potential security issue.
invalid_request_errorInvalid request errors arise when your request has invalid parameters.
internal_server_errorAn internal server error indicates something went wrong on our end while processing your request. This could be due to a temporary issue, a bug, or a system outage.
idempotency_errorIdempotency errors occur when the same Idempotency-Key is used for a request with a different API endpoint or set of parameters than the original request.
rate_limit_errorA rate limit error indicates that your team has reached the assigned limit of 20 API requests per second.
permission_errorYou are not authorized to do this operation. (Action: %s, Resource: %s.)

Client-side error codes

Error codeError messageHTTP status codeDescription
300001Invalid parameters <error_details>400A required parameter is missing or incorrectly configured. Please verify that all parameters are properly set.
300002No permissions <error_details>200You do not have the necessary permissions to perform this operation.
300003<resource_name> not found200The specified resource could not be found in your project. Please verify that the resource ID is correct.
300004Invalid file extension200The file extension is not supported by Powerdrill. Supported extensions include .csv, .tsv, .md, .mdx, .json, .txt, .pdf, .pptx, .ppt, .doc, .docx, .xls, and .xlsx.
300005Empty file200The file is empty. Please check that you have uploaded the correct file.
300006Insufficient storage space200There is not enough available storage space to upload the file. Please upgrade your workspace capacity plan.
300007Failed to upload the file200An error occured while uploading the file. Please check that the file is in a supported format and try again.
300008An error occurred while generating the presigned URL200An error occurred while generating the presigned URL. Check that all parameters are correctly set and try again.
300009The number of sessions has reached the upper limit200The maximum number of sessions has been reached. Please delete any unnecessary sessions and try again.
300011Fail to create datasource200Failed to create the data source due to an internal error.
210020Something went wrong during job execution. Please try again.400Failed to run the job. You can try again later.
210021Job quota exceeded400Insuffient job quota. Upgrade your job plan to increase your job quota.Insufficient job quota. Upgrade your plan to run more jobs.
210022Question too long400The question exceeds the maximum length of 6000 characters.
210023Selected files are not all ready400At least one of the selected files is not synchronized.
210024Text too long for TTS service, limit is 5k characters.400The text entered to convert to audio exceeds the upper limit of 5000 characters. Please make it shorter.
210025Too many selected files in the query400Too many files selected.
210026Invalid analysis400Failed to analyze your data. You can try again later or set stream to true to rerun the job.

Server-side error code

Error codeMessageHTTP status codeDescription
9999Internal server error500The request could not be processed due to an unknown error.
201Rate limit reached for requests429A rate limit error occurs when you exceed your assigned limit. Currently, each team is allowed up to 20 API requests per second.
1002Expired credentials403The provided credentials have expired and are no longer valid. You may need to renew or refresh them.
1003Insufficient authentication403The provided authentication is insufficient or incomplete. Please ensure all required authentication details are included.
1004Bad credentials403The provided credentials are incorrect or malformed. Please verify that all credentials are correct.