Created
October 11, 2019 10:34
-
-
Save pablocattaneo/b786588b9ed0a90c05448776cf7e74c6 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
app.use((req, res, next) => { | |
res.status(404).send('<h1>404!! Page not found</h1>'); | |
}) | |
// Note that there is not path and the status method that define the status code of the respond. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment