Skip to content

ResponseTooLargeError

A response rejected by the size cap: a permanent condition (the resource is simply too big), unlike a timeout or connection error that may succeed on retry. Callers branch on isTooLargeError rather than on this class.

  • Error
new ResponseTooLargeError(message: string): ResponseTooLargeError;
ParameterTypeDescription
messagestringWhat was too large, and by which of the two caps.

ResponseTooLargeError

Error.constructor
PropertyModifierTypeDefault valueDescriptionInherited from
cause?publicunknownundefined-Error.cause
codereadonlystringTOO_LARGE_CODEThe stable marker isTooLargeError tests for.-
messagepublicstringundefined-Error.message
namepublicstringundefined-Error.name
stack?publicstringundefined-Error.stack