Last active
April 5, 2017 09:28
-
-
Save davinci2015/d0b7bf949ab057d1e0cc198c368693fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var HttpStatus = require('http-status-codes'); | |
| response.status(HttpStatus.OK).send('ok'); | |
| response.status(HttpStatus.INTERNAL_SERVER_ERROR).send({ | |
| error: HttpStatus.getStatusText(HttpStatus.INTERNAL_SERVER_ERROR) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment