joepie91 / node-bhttp

A sane HTTP client library for Node.js with Streams2 support.
62 stars 12 forks source link

Error handling #8

Open joepie91 opened 9 years ago

joepie91 commented 9 years ago

bhttp should allow for specifying a list or range of 'unacceptable' response codes (eg. 4xx, 5xx) that should be treated and thrown as errors.