unio icon indicating copy to clipboard operation
unio copied to clipboard

Add support for defining response errors in specs

Open matomesc opened this issue 12 years ago • 0 comments

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)?

matomesc avatar Aug 09 '13 21:08 matomesc