Skip to content

Instantly share code, notes, and snippets.

@techieshark
Created August 29, 2019 01:11
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 techieshark/858463e4d2555e6160730a85049b1364 to your computer and use it in GitHub Desktop.
Save techieshark/858463e4d2555e6160730a85049b1364 to your computer and use it in GitHub Desktop.
node: send204()
import { NO_CONTENT } from 'http-status-codes';
const send204 = (req: Request, res: Response, next: NextFunction) => {
res.status(NO_CONTENT);
res.end();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment