@salesforce/agents
Preparing search index...
utils
getHttpStatusCode
Function getHttpStatusCode
getHttpStatusCode
(
err
:
unknown
)
:
number
|
undefined
Extract HTTP status code from API errors. Supports:
ERROR_HTTP_404 / ERROR_HTTP_500 style (name, errorCode, or data.errorCode)
Numeric statusCode on error, cause, or response
Parameters
err
:
unknown
Returns
number
|
undefined
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@salesforce/agents
Loading...
Extract HTTP status code from API errors. Supports: