Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shrunyan
Created March 12, 2016 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrunyan/2fe58356485aa67827e2 to your computer and use it in GitHub Desktop.
Save shrunyan/2fe58356485aa67827e2 to your computer and use it in GitHub Desktop.
troll express middlware
app.get('/troll', (req, res) => {res.sendStatus([200,400,500,422][Math.floor(Math.random() * 4)])})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment