UNPKG

handle-http-error

Version:

Handle a few common cases when an HTTP request got an error.

51 lines (50 loc) 1.13 kB
{ "name": "handle-http-error", "version": "0.1.1", "description": "Handle a few common cases when an HTTP request got an error.", "author": { "name": "Wiredcraft", "email": "info@wiredcraft.com", "url": "http://wiredcraft.com" }, "contributors": [ "Makara Wang" ], "keywords": [ "Handle", "HTTP", "Error", "Request", "Handler" ], "license": "MIT", "repository": { "type": "git", "url": "https://github.com/Wiredcraft/handle-http-error" }, "bugs": { "url": "https://github.com/Wiredcraft/handle-http-error/issues" }, "homepage": "https://github.com/Wiredcraft/handle-http-error", "dependencies": { "debug": "^3.1.0", "http-errors": "^1.6.2", "not-empty-object": "^1.0.0", "sliced": "^1.0.1" }, "devDependencies": { "bluebird": "^3.5.1", "coveralls": "^3.0.0", "isomorphic-fetch": "^2.2.1", "istanbul": "^0.4.4", "jscs": "^3.0.7", "mocha": "^4.0.1", "nock": "^9.0.25", "request": "^2.83.0", "request-promise": "^4.2.2", "should": "^13.1.2" }, "scripts": { "test": "make test" } }