Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for defining response errors in specs #21

@matomesc

Description

@matomesc

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions