Updated docs
This commit is contained in:
@ -30,13 +30,16 @@ The returned value of every API call is formed as follows:
|
||||
body: object | boolean
|
||||
statusCode: number
|
||||
headers: object
|
||||
warnings: [string]
|
||||
warnings: [string],
|
||||
meta: object
|
||||
}
|
||||
----
|
||||
|
||||
NOTE: The body will be a boolean value when using `HEAD` APIs.
|
||||
|
||||
The above valiue will be returned even if there is an error during the execution of the request, this means that you can safely use the https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment[destructuring assignment].
|
||||
The above value will be returned even if there is an error during the execution of the request, this means that you can safely use the https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment[destructuring assignment].
|
||||
|
||||
The `meta` key contains all the information regarding the request, such as attempt, options, and the connection that has been used.
|
||||
|
||||
[source,js]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user