Methods
(async) raiseForStatus(fn) → {object}
Perform a request and raise error when status is not 2XX
Parameters:
Name | Type | Description |
---|---|---|
fn |
function
|
Function that will perform a request |
Throws:
RequestError
|
Error
Returns:
- Type:
-
object
Response