Skip to content

basalt / storage/src / StorageContentLengthInvalidError

Class: StorageContentLengthInvalidError ​

Defined in: storage/src/errors.ts:147

The contentLength given to putStream is not a byte count: negative, fractional, not finite, or past Number.MAX_SAFE_INTEGER. Refused before a single byte is read. 400: the caller declared it.

Extends ​

Constructors ​

Constructor ​

> new StorageContentLengthInvalidError(value): StorageContentLengthInvalidError

Defined in: storage/src/errors.ts:149

Parameters ​

value ​

unknown

Returns ​

StorageContentLengthInvalidError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 400 = 400

Defined in: storage/src/errors.ts:148

Released under the MIT License.