All Products
Search
Document Center

Object Storage Service:Error handling (Browser.js SDK)

Last Updated:Mar 20, 2026

When a request fails, the OSS SDK for Browser.js throws an error object. In most cases, the error contains the following properties:

PropertyDescription
statusHTTP status code of the failed request
codeOSS error code
messageOSS error message
requestIdUUID that uniquely identifies the request. Provide this ID to Alibaba Cloud technical support when reporting an issue.

For a list of common OSS errors, see Overview.

Enable debugging

In a browser environment, enable SDK debug logs by running the following in the browser console:

localStorage.debug = 'ali-oss'