Generic Class to Instance SFD Response Error
Install
$ npm i -S @sfd-br/response-error
Usage
let ResponseError = require('@sfd-br/response-error');
// Return a 500 Generic Error
return new ResponseError();
// Return treated error with status 400
return new ResponseError("This Adress is invalid!", 400);
License
SFD