{
  "statusCode": 409,
  "errorCode": "UPLOAD/OUT_OF_ORDER",
  "message": "This library takes the chunks in order. Send the first range in nextExpectedRanges.",
  "details": {
    "nextExpectedRanges": [
      "52428800-119999999"
    ]
  }
}

Error codes

errorCodeStatusWhat to do
UPLOAD/ALREADY_COMPLETING409The upload is finishing or finished, so it cannot be cancelled. To remove the file, use Delete File.
UPLOAD/CHECKSUM_MISMATCH400The piece arrived damaged (AWS S3, Azure Blob). Retry.
UPLOAD/CHECKSUM_NOT_SUPPORTED400SharePoint and Google Drive cannot check Content-MD5. Send the piece without it.
UPLOAD/CHUNKS_IN_FLIGHT429Too many pieces are arriving at once. Retry.
UPLOAD/CONFLICT_BEHAVIOR_NOT_ALLOWED400The library does not take this conflictBehavior. Use one in details.allowed.
UPLOAD/DESTINATION_CHANGED409The destination folder was deleted, moved or renamed during the upload (AWS S3, Azure Blob). Create a new upload.
UPLOAD/EXPIRED410The upload expired. Create a new upload.
UPLOAD/FOLDER_PATH_BLOCKED409Something that is not a folder has the name of a folder in folderPath, given in details.name. Choose another path.
UPLOAD/FOLDER_PATH_NOT_SUPPORTED400Google Drive does not take folderPath. Name the folder with folderId.
UPLOAD/INVALID_DRIVE400driveId is not a drive of this library. Check it.
UPLOAD/INVALID_FOLDER_PATH400A folder name in folderPath is not allowed, or folderPath came with replaceFileId. Fix the path.
UPLOAD/INVALID_RANGE400Content-Range or the body's length does not match the upload. Fix it as message says.
UPLOAD/LENGTH_REQUIRED411Send the piece with a Content-Length header.
UPLOAD/LIBRARY_NOT_SUPPORTED400Upload to AWS S3, Azure Blob, SharePoint or Google Drive.
UPLOAD/NAME_CONFLICT409A file of this name exists and conflictBehavior is fail. Choose another name or conflictBehavior. From the last piece (AWS S3, Azure Blob), the upload has ended: create a new one.
UPLOAD/NAME_RESERVED409Another open upload is writing this file; details.uploadId names it. Retry once it ends, or cancel it.
UPLOAD/NOT_ACCEPTING_CHUNKS409The upload was cancelled or ended by an error. Create a new upload.
UPLOAD/NOT_FOUND404No upload with this URL or id, or it ended more than about seven days ago. Check the URL or id.
UPLOAD/OUT_OF_ORDER409SharePoint and Google Drive take pieces in order. Retry with the first range in details.nextExpectedRanges.
UPLOAD/PROVIDER_UPLOAD_LOST409The storage no longer holds the pieces sent so far. Create a new upload.
UPLOAD/REPLACE_INCOMPATIBLE400A new version needs the same extension as the file it replaces. Fix the name.
UPLOAD/REPLACE_TARGET_CHANGED409The file being replaced was deleted, moved, renamed or overwritten during the upload (AWS S3, Azure Blob). Create a new upload.
UPLOAD/REPLACE_TARGET_NOT_FOUND404replaceFileId is not a file in this library. Check the id.
UPLOAD/STORAGE_ACCESS_DENIED403CloudFiles can no longer reach your storage. Reconnect the library, then create a new upload.
UPLOAD/STORAGE_UNAVAILABLE503The storage was busy. Retry.
UPLOAD/TOO_LARGE413The file is over 20 GB (details.maxSize).
UPLOAD/TOO_MANY_OPEN_SESSIONS429Your account has 50 open uploads. Retry after one finishes or you cancel one.
UPLOAD/TOO_MANY_RESENT_BYTES409The upload has received more than twice the file's size, counting resent pieces. Create a new upload.
COMMON/VALIDATION_FAILED400A field is missing, mistyped or unknown, or the library is not connected. message says which.
COMMON/UNAUTHORIZED401The API key belongs to a partner user whose account has partner access turned off.
COMMON/FORBIDDEN403The API key is missing or unknown, or your HubSpot plan does not include the API. Check the key.
COMMON/NOT_FOUND404Something the request names, such as folderId, does not exist.
COMMON/UNEXPECTED500Something failed on our side. Retry. If it keeps failing, contact support.