micro-errors
A Error Handling for ZEIT's Micro.
yarn add micro-errors
RFC7807
RFC7807 compliant ref: https://tools.ietf.org/html/rfc7807
Usage
const handleErrors createError = moduleexports = async { throw } // HTTP/1.1 400 Bad Request// Content-Type: application/problem+json//// {// "type": "about:blank",// "title": "Bad Request",// "status": 400,// "instance": "/foo/bar",// }
License
© sugarshin