You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2022. It is now read-only.
After initialization, in general, callback functions receive three arguments:
224
+
### Callback Signature
224
225
225
-
*`err` - the error, if any
226
-
*`body` - the http _response body_ from Cloudant, if no error.
227
-
*`header` - the http _response header_ from Cloudant, if no error
226
+
Callback functions receive three arguments:
228
227
229
-
The `ping()` function is the only exception to this rule. It does not return headers since a "ping" is made from multiple requests to gather various bits of information.
228
+
```js
229
+
function(err, body, header) {}
230
+
```
231
+
232
+
*`err` - The _error_ (if any). For example, fetching a document that doesn't exist:
0 commit comments