Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
throwIfError(statusCode, errorMessage): void Function to parse the numeric status code provided and throw the appropriate error if it is a failure code.

Parameters

statusCode

number The status code.

errorMessage

Returns

void

Throws

InternalError, IllegalStateError, StorageLimitError
Last modified on September 30, 2025