Skip to content

StorageErrorOptions

StorageErrorOptions = object

Defined in: packages/storage/src/types.ts:19

Options used to construct a StorageError.

Combines a machine-readable code, human-readable detail, and an HTTP status code so that errors can be surfaced directly in API responses.

code: StorageErrorCode

Defined in: packages/storage/src/types.ts:21

Machine-readable error code.


detail: string

Defined in: packages/storage/src/types.ts:23

Human-readable description of the problem.


status: number

Defined in: packages/storage/src/types.ts:25

HTTP status code to surface to the client (e.g. 413, 415, 500).