Error Codes

The AI Data Foundry API uses standard HTTP status codes to indicate problems that occur during request processing.

The response body typically includes a JSON object with specific information about the error.

JSON Example

{
  "message": "Permission denied: data.access.all",
  "error": "Forbidden",
  "statusCode": 403
}

Client Errors (4xx)

Errors caused by incorrect client-side requests (e.g., invalid API key, missing file, unsupported format, etc.)

Status Code Message Description
400 Bad Request 업로드할 파일이 필요합니다. (An upload file is required.) Returned when the file field containing file data cannot be found in a multipart/form-data request.
400 Bad Request folderId 는 양의 정수여야 합니다. (folderId must be a positive integer.) Returned when folderId on upload is not an integer or is zero or negative.
401 Unauthorized API Key 인증에 실패했습니다. 유효한 API Key를 사용하여 요청해 주세요. (API Key authentication failed. Please use a valid API Key.) Returned when the Authorization header is missing or the Bearer token (API key) is invalid.
403 Forbidden Project context could not be resolved Returned when the projectId path value is not a 10-character alphanumeric string, or no project matches it. The two cases are not distinguished.
403 Forbidden Permission denied: data.access.all Returned when the project exists but the API key user has no data access permission on it.
404 Not Found 폴더를 찾을 수 없습니다. (Folder not found.) Returned when no folder matches folderId on upload or that folder does not belong to the project.
404 Not Found Not Found For document status polling and export, returned identically whether the uuid does not exist, is not accessible, or is malformed.
409 Conflict { "code": "NOT_EXPORTABLE", "status": "<current status>" } Returned by export when the document has not reached succeeded yet. This is the only response whose entire body is the object on the left — no statusCode or message wrapper. Confirm succeeded via the status API, then retry.
413 Payload Too Large 파일 크기가 100MB를 초과합니다. (The file size exceeds 100MB.) Returned when the size of a single uploaded file exceeds the maximum size (100MB) allowed by the server.
415 Unsupported Media Type 지원하지 않는 파일 형식입니다. (Unsupported file format.) Returned when the format of the uploaded file is not supported by the server. Check Supported Formats.

Server Errors (5xx)

Cases where the request was valid but processing failed due to unexpected server-side issues.

Status Code Message Description
500 Internal Server Error Internal server error Returned when request processing fails due to an unexpected internal server issue. Try again later, and contact the administrator if the problem persists.

Response Example

{
  "statusCode": 500,
  "message": "Internal server error"
}

Document Failure Codes

The 4xx and 5xx errors above mean the request itself failed. This section covers the other case: the request succeeded, but processing the document failed.

The document status API responds with 200 OK even when the document failed, because the status request itself succeeded. The body then has status set to failed, and failure.code tells you why.

Situation HTTP status Response body
The request is invalid (bad API key, no permission, unknown document, etc.) 4xx · 5xx { "message": "...", "error": "...", "statusCode": 403 }
Status request succeeded; document in progress or completed 200 OK { "status": "processing" } · { "status": "succeeded" }
Status request succeeded; document processing failed 200 OK { "status": "failed", "failure": { "code": "...", "message": "..." } }

Branch on code. message is an English description for reference and may change. Treat any value not listed here the same as ANALYSIS_FAILED.

Code Meaning What to do
DOCUMENT_ENCRYPTED The document is password-protected and cannot be opened. Remove the password or convert it to PDF, then upload it again. Uploading the same file as is gives the same result.
DOCUMENT_UNPROCESSABLE The format is supported, but the document content could not be processed. Convert it to another format such as PDF, then upload it again. Uploading the same file as is gives the same result.
INSUFFICIENT_CREDIT Processing stopped because there were not enough credits. Add credits, then upload the same file again.
STOPPED Processing was stopped before it finished. Upload the same file again.
ANALYSIS_TIMEOUT Analysis did not finish within the time limit. Upload the same file again. Contact the administrator if it keeps happening with large documents.
ANALYSIS_UNAVAILABLE The analysis server was not ready, so analysis could not start. Upload the same file again in a few minutes.
ANALYSIS_FAILED Analysis failed for another reason. Upload the same file again, and contact the administrator if it keeps failing.

Response Example

{
  "status": "failed",
  "failure": {
    "code": "DOCUMENT_ENCRYPTED",
    "message": "The document is password-protected. Remove the password or convert it to PDF, then upload it again."
  }
}