Sarraf API
Preparing search index...
core/src
ensureOk
Function ensureOk
ensureOk
<
T
>
(
res
:
HttpResponse
<
T
>
,
provider
:
ProviderId
,
operation
:
string
,
providerMessage
?:
(
data
:
unknown
)
=>
string
|
undefined
,
)
:
HttpResponse
<
T
>
Throw a SarrafError for a non-2xx response using the default status mapping.
Type Parameters
T
Parameters
res
:
HttpResponse
<
T
>
provider
:
ProviderId
operation
:
string
Optional
providerMessage
:
(
data
:
unknown
)
=>
string
|
undefined
Returns
HttpResponse
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sarraf API
Loading...
Throw a SarrafError for a non-2xx response using the default status mapping.