StorageErrorCode
StorageErrorCode =
"FILE_TOO_LARGE"|"INVALID_MIME_TYPE"|"UPLOAD_FAILED"|"UNAUTHORIZED"|"INVALID_TOKEN"
Defined in: packages/storage/src/types.ts:10
Machine-readable error codes produced by the storage validation and upload pipeline.
"FILE_TOO_LARGE"— The file exceeds the configuredmaxSize(HTTP 413)."INVALID_MIME_TYPE"— The file’s MIME type is not in theacceptlist (HTTP 415)."UPLOAD_FAILED"— The R2 upload operation failed (HTTP 500)."UNAUTHORIZED"— The caller failed theownerCheckaccess gate (HTTP 403)."INVALID_TOKEN"— A signed URL token is missing, malformed, or expired (HTTP 403).