OpenFiles API uses conventional HTTP response codes and provides detailed error information.
Code | Meaning | Description |
---|---|---|
200 | Success | Request completed successfully |
400 | Bad Request | Invalid request parameters or format |
401 | Unauthorized | Missing or invalid authentication |
404 | Not Found | File or resource doesn’t exist |
409 | Conflict | File already exists (write operation) |
422 | Unprocessable Entity | Business rule violation |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side error |
INVALID_API_KEY
oa_
RATE_LIMIT_EXCEEDED
X-RateLimit-Reset
headerFILE_NOT_FOUND
list_files
to check available filesFILE_ALREADY_EXISTS
edit_file
for partial updatesoverwrite_file
to replace contentINVALID_PATH
folder/file.txt
folder/file.txt
not /folder/file.txt
CONTENT_TOO_LARGE
STRING_NOT_FOUND
read_file
to see current content