This pull request adds a response property to error objects. This is modeled after SuperAgent, which describes this property in their section on error handling (emphasis mine):
Note that superagent considers 4xx and 5xx responses (as well as unhandled 3xx responses) errors by default. For example, if you get a 304 Not modified, 403 Forbidden or 500 Internal server error response, this status information will be available via err.status. Errors from such responses also contain an err.response field with all of the properties mentioned in "Response properties".
This pull request adds a
response
property to error objects. This is modeled after SuperAgent, which describes this property in their section on error handling (emphasis mine):