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
For example consider the facebook api errors here.
We can easily map non-200 responses to create errors from the response body.
@ttezel should the callbacks be invoked with (err, res, body) where err would be an error with error message and body is the parsed response body, or attach the response body on the err object (err.body) and callback with (err, res)?
The text was updated successfully, but these errors were encountered:
For example consider the facebook api errors here.
We can easily map non-200 responses to create errors from the response body.
@ttezel should the callbacks be invoked with
(err, res, body)
whereerr
would be an error with error message andbody
is the parsed response body, or attach the response body on theerr
object (err.body
) and callback with(err, res)
?The text was updated successfully, but these errors were encountered: