Errors
The Files.com API returns standard HTTP success (2xx) or error (4xx, 5xx) status codes. Status
codes in the 5xx range are unexpected and indicate an error occurred with our API. Wait some time
and then try again. If you get a 500 repeatedly, it may be a bug. Please report it.
Note that success codes can include 200, 201, and 204.
The Files.com API returns errors in a standard structure for both JSON and XML API requests as well
as our SDKs. Because different types of errors will share the same HTTP response code, it is
strongly recommended to use the type attribute of the returned error object and not the HTTP
response code when handling errors.
When the request encounters an error while creating or updating a record, the response will include
three additional JSON objects: errors, model_errors, and model_error_keys. The errors object
contains user friendly error strings translated into your site's default language. The
model_errors object contains the user friendly error strings from the errors object mapped to
the parameter that caused the error. The model_error_keys object contains the translation keys
used to generate the user friendly entries in model_errors. These keys can be used for language
independent error handling logic. For errors which do not have translation keys, the
model_error_keys entries will instead contain the English error string.
Each SDK implements exception handling in a native way using these error types. You can catch/rescue individual error types as well as error type families.
Error Types
| Type | Description |
|---|---|
bad-request | Bad Request |
bad-request/agent-upgrade-required | Agent Upgrade Required |
bad-request/attachment-too-large | Attachment Too Large |
bad-request/cannot-download-directory | Cannot Download Directory |
bad-request/cant-move-with-multiple-locations | Cant Move With Multiple Locations |
bad-request/datetime-parse | Datetime Parse |
bad-request/destination-same | Destination Same |
bad-request/destination-site-mismatch | Destination Site Mismatch |
bad-request/does-not-support-sorting | Does Not Support Sorting |
bad-request/folder-must-not-be-a-file | Folder Must Not Be A File |
bad-request/folders-not-allowed | Folders Not Allowed |
bad-request/internal-general-error | Internal General Error |
bad-request/invalid-body | Invalid Body |
bad-request/invalid-cursor | Invalid Cursor |
bad-request/invalid-cursor-type-for-sort | Invalid Cursor Type For Sort |
bad-request/invalid-etags | Invalid Etags |
bad-request/invalid-filter-alias-combination | Invalid Filter Alias Combination |
bad-request/invalid-filter-field | Invalid Filter Field |
bad-request/invalid-filter-param | Invalid Filter Param |
bad-request/invalid-filter-param-format | Invalid Filter Param Format |
bad-request/invalid-filter-param-value | Invalid Filter Param Value |
bad-request/invalid-input-encoding | Invalid Input Encoding |
bad-request/invalid-interface | Invalid Interface |
bad-request/invalid-oauth-provider | Invalid Oauth Provider |
bad-request/invalid-path | Invalid Path |
bad-request/invalid-return-to-url | Invalid Return To Url |
bad-request/invalid-search-query | Invalid Search Query |
bad-request/invalid-sort-field | Invalid Sort Field |
bad-request/invalid-sort-filter-combination | Invalid Sort Filter Combination |
bad-request/invalid-upload-offset | Invalid Upload Offset |
bad-request/invalid-upload-part-gap | Invalid Upload Part Gap |
bad-request/invalid-upload-part-size | Invalid Upload Part Size |
bad-request/invalid-workspace-id-header | Invalid Workspace Id Header |
bad-request/method-not-allowed | Method Not Allowed |
bad-request/multiple-sort-params-not-allowed | Multiple Sort Params Not Allowed |
bad-request/no-valid-input-params | No Valid Input Params |
bad-request/offset-upload-not-allowed-with-malware-scanning | Offset Upload Not Allowed With Malware Scanning |
bad-request/part-number-too-large | Part Number Too Large |
bad-request/path-cannot-have-trailing-whitespace | Path Cannot Have Trailing Whitespace |
bad-request/reauthentication-needed-fields | Reauthentication Needed Fields |
bad-request/request-body-too-large | Request Body Too Large |
bad-request/request-params-contain-invalid-character | Request Params Contain Invalid Character |
bad-request/request-params-invalid | Request Params Invalid |
bad-request/request-params-required | Request Params Required |
bad-request/search-all-on-child-path | Search All On Child Path |
bad-request/unrecognized-sort-index | Unrecognized Sort Index |
bad-request/unsupported-currency | Unsupported Currency |
bad-request/unsupported-http-response-format | Unsupported Http Response Format |
bad-request/unsupported-media-type | Unsupported Media Type |
bad-request/user-id-invalid | User Id Invalid |
bad-request/user-id-on-user-endpoint | User Id On User Endpoint |
bad-request/user-required | User Required |
not-authenticated/additional-authentication-required | Additional Authentication Required |
not-authenticated/api-key-sessions-not-supported | Api Key Sessions Not Supported |
not-authenticated/authentication-required | Authentication Required |
not-authenticated/bundle-registration-code-failed | Bundle Registration Code Failed |
not-authenticated/files-agent-token-failed | Files Agent Token Failed |
not-authenticated/inbox-registration-code-failed | Inbox Registration Code Failed |
not-authenticated/invalid-credentials | Invalid Credentials |
not-authenticated/invalid-oauth | Invalid Oauth |
not-authenticated/invalid-or-expired-code | Invalid Or Expired Code |
not-authenticated/invalid-session | Invalid Session |
not-authenticated/invalid-username-or-password | Invalid Username Or Password |
not-authenticated/locked-out | Locked Out |
not-authenticated/lockout-region-mismatch | Lockout Region Mismatch |
not-authenticated/one-time-password-incorrect | One Time Password Incorrect |
not-authenticated/two-factor-authentication-error | Two Factor Authentication Error |
not-authenticated/two-factor-authentication-setup-expired | Two Factor Authentication Setup Expired |
not-authorized/api-key-is-disabled | Api Key Is Disabled |
not-authorized/api-key-is-path-restricted | Api Key Is Path Restricted |
not-authorized/api-key-only-for-desktop-app | Api Key Only For Desktop App |
not-authorized/api-key-only-for-mobile-app | Api Key Only For Mobile App |
not-authorized/api-key-only-for-office-integration | Api Key Only For Office Integration |
not-authorized/billing-information-hidden | Billing Information Hidden |
not-authorized/billing-permission-required | Billing Permission Required |
not-authorized/bundle-maximum-uses-reached | Bundle Maximum Uses Reached |
not-authorized/bundle-permission-required | Bundle Permission Required |
not-authorized/cannot-login-while-using-key | Cannot Login While Using Key |
not-authorized/cant-act-for-other-user | Cant Act For Other User |
not-authorized/contact-admin-for-password-change-help | Contact Admin For Password Change Help |
not-authorized/files-agent-failed-authorization | Files Agent Failed Authorization |
not-authorized/folder-admin-or-billing-permission-required | Folder Admin Or Billing Permission Required |
not-authorized/folder-admin-permission-required | Folder Admin Permission Required |
not-authorized/full-permission-required | Full Permission Required |
not-authorized/history-permission-required | History Permission Required |
not-authorized/in-app-ai-assistant-unavailable | In App Ai Assistant Unavailable |
not-authorized/insufficient-permission-for-params | Insufficient Permission For Params |
not-authorized/insufficient-permission-for-site | Insufficient Permission For Site |
not-authorized/mover-access-denied | Mover Access Denied |
not-authorized/mover-package-required | Mover Package Required |
not-authorized/must-authenticate-with-api-key | Must Authenticate With Api Key |
not-authorized/need-admin-permission-for-inbox | Need Admin Permission For Inbox |
not-authorized/non-admins-must-query-by-folder-or-path | Non Admins Must Query By Folder Or Path |
not-authorized/not-allowed-to-create-bundle | Not Allowed To Create Bundle |
not-authorized/not-enqueuable-sync | Not Enqueuable Sync |
not-authorized/password-change-not-required | Password Change Not Required |
not-authorized/password-change-required | Password Change Required |
not-authorized/payment-method-error | Payment Method Error |
not-authorized/preview-only-permission-cannot-download | Preview Only Permission Cannot Download |
not-authorized/read-only-session | Read Only Session |
not-authorized/read-permission-required | Read Permission Required |
not-authorized/reauthentication-failed | Reauthentication Failed |
not-authorized/reauthentication-failed-final | Reauthentication Failed Final |
not-authorized/reauthentication-needed-action | Reauthentication Needed Action |
not-authorized/recaptcha-failed | Recaptcha Failed |
not-authorized/remote-desktop-debug-logging-disabled | Remote Desktop Debug Logging Disabled |
not-authorized/root-folder-behavior-site-admin-required | Root Folder Behavior Site Admin Required |
not-authorized/root-folder-behavior-skip-site-admin-required | Root Folder Behavior Skip Site Admin Required |
not-authorized/self-managed-required | Self Managed Required |
not-authorized/site-admin-or-partner-admin-permission-required | Site Admin Or Partner Admin Permission Required |
not-authorized/site-admin-or-workspace-admin-or-folder-admin-permission-required | Site Admin Or Workspace Admin Or Folder Admin Permission Required |
not-authorized/site-admin-or-workspace-admin-or-partner-admin-or-folder-admin-permission-required | Site Admin Or Workspace Admin Or Partner Admin Or Folder Admin Permission Required |
not-authorized/site-admin-or-workspace-admin-or-partner-admin-permission-required | Site Admin Or Workspace Admin Or Partner Admin Permission Required |
not-authorized/site-admin-or-workspace-admin-permission-required | Site Admin Or Workspace Admin Permission Required |
not-authorized/site-admin-required | Site Admin Required |
not-authorized/site-files-are-immutable | Site Files Are Immutable |
not-authorized/two-factor-authentication-required | Two Factor Authentication Required |
not-authorized/user-id-without-site-admin | User Id Without Site Admin |
not-authorized/write-and-bundle-permission-required | Write And Bundle Permission Required |
not-authorized/write-permission-required | Write Permission Required |
not-found | Not Found |
not-found/api-key-not-found | Api Key Not Found |
not-found/bundle-path-not-found | Bundle Path Not Found |
not-found/bundle-registration-not-found | Bundle Registration Not Found |
not-found/code-not-found | Code Not Found |
not-found/file-not-found | File Not Found |
not-found/file-upload-not-found | File Upload Not Found |
not-found/group-not-found | Group Not Found |
not-found/inbox-not-found | Inbox Not Found |
not-found/nested-not-found | Nested Not Found |
not-found/plan-not-found | Plan Not Found |
not-found/site-not-found | Site Not Found |
not-found/user-not-found | User Not Found |
processing-failure | Processing Failure |
processing-failure/agent-push-update-blocked | Agent Push Update Blocked |
processing-failure/agent-unavailable | Agent Unavailable |
processing-failure/ai-task-cannot-be-run-manually | Ai Task Cannot Be Run Manually |
processing-failure/already-completed | Already Completed |
processing-failure/automation-cannot-be-run-manually | Automation Cannot Be Run Manually |
processing-failure/behavior-not-allowed-on-remote-server | Behavior Not Allowed On Remote Server |
processing-failure/buffered-upload-disabled-for-this-destination | Buffered Upload Disabled For This Destination |
processing-failure/bundle-only-allows-previews | Bundle Only Allows Previews |
processing-failure/bundle-operation-requires-subfolder | Bundle Operation Requires Subfolder |
processing-failure/configuration-locked-path | Configuration Locked Path |
processing-failure/could-not-create-parent | Could Not Create Parent |
processing-failure/destination-exists | Destination Exists |
processing-failure/destination-folder-limited | Destination Folder Limited |
processing-failure/destination-parent-conflict | Destination Parent Conflict |
processing-failure/destination-parent-does-not-exist | Destination Parent Does Not Exist |
processing-failure/exceeded-runtime-limit | Exceeded Runtime Limit |
processing-failure/expectation-already-has-open-window | Expectation Already Has Open Window |
processing-failure/expectation-not-manual-trigger | Expectation Not Manual Trigger |
processing-failure/expired-private-key | Expired Private Key |
processing-failure/expired-public-key | Expired Public Key |
processing-failure/export-failure | Export Failure |
processing-failure/export-not-ready | Export Not Ready |
processing-failure/failed-to-change-password | Failed To Change Password |
processing-failure/file-locked | File Locked |
processing-failure/file-not-uploaded | File Not Uploaded |
processing-failure/file-pending-processing | File Pending Processing |
processing-failure/file-processing-error | File Processing Error |
processing-failure/file-too-big-to-decrypt | File Too Big To Decrypt |
processing-failure/file-too-big-to-encrypt | File Too Big To Encrypt |
processing-failure/file-uploaded-to-wrong-region | File Uploaded To Wrong Region |
processing-failure/filename-too-long | Filename Too Long |
processing-failure/folder-locked | Folder Locked |
processing-failure/folder-not-empty | Folder Not Empty |
processing-failure/history-unavailable | History Unavailable |
processing-failure/invalid-bundle-code | Invalid Bundle Code |
processing-failure/invalid-file-type | Invalid File Type |
processing-failure/invalid-filename | Invalid Filename |
processing-failure/invalid-priority-color | Invalid Priority Color |
processing-failure/invalid-range | Invalid Range |
processing-failure/invalid-site | Invalid Site |
processing-failure/invalid-zip-file | Invalid Zip File |
processing-failure/metadata-not-supported-on-remotes | Metadata Not Supported On Remotes |
processing-failure/model-save-error | Model Save Error |
processing-failure/multiple-processing-errors | Multiple Processing Errors |
processing-failure/path-too-long | Path Too Long |
processing-failure/recipient-already-shared | Recipient Already Shared |
processing-failure/remote-server-error | Remote Server Error |
processing-failure/resource-belongs-to-parent-site | Resource Belongs To Parent Site |
processing-failure/resource-locked | Resource Locked |
processing-failure/subfolder-locked | Subfolder Locked |
processing-failure/sync-in-progress | Sync In Progress |
processing-failure/two-factor-authentication-code-already-sent | Two Factor Authentication Code Already Sent |
processing-failure/two-factor-authentication-country-blacklisted | Two Factor Authentication Country Blacklisted |
processing-failure/two-factor-authentication-general-error | Two Factor Authentication General Error |
processing-failure/two-factor-authentication-method-unsupported-error | Two Factor Authentication Method Unsupported Error |
processing-failure/two-factor-authentication-unsubscribed-recipient | Two Factor Authentication Unsubscribed Recipient |
processing-failure/updates-not-allowed-for-remotes | Updates Not Allowed For Remotes |
rate-limited/duplicate-share-recipient | Duplicate Share Recipient |
rate-limited/reauthentication-rate-limited | Reauthentication Rate Limited |
rate-limited/too-many-concurrent-logins | Too Many Concurrent Logins |
rate-limited/too-many-concurrent-requests | Too Many Concurrent Requests |
rate-limited/too-many-login-attempts | Too Many Login Attempts |
rate-limited/too-many-requests | Too Many Requests |
rate-limited/too-many-shares | Too Many Shares |
service-unavailable/automations-unavailable | Automations Unavailable |
service-unavailable/migration-in-progress | Migration In Progress |
service-unavailable/site-disabled | Site Disabled |
service-unavailable/uploads-unavailable | Uploads Unavailable |
site-configuration/account-already-exists | Account Already Exists |
site-configuration/account-overdue | Account Overdue |
site-configuration/no-account-for-site | No Account For Site |
site-configuration/site-was-removed | Site Was Removed |
site-configuration/trial-expired | Trial Expired |
site-configuration/trial-locked | Trial Locked |
site-configuration/user-requests-enabled-required | User Requests Enabled Required |