0.1.2 • Published 6 years ago
@sfd-br/response-error v0.1.2
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
0.1.2
6 years ago