UNPKG

serverless-utilities

Version:

Handy 🛠️ utility functions for Vercel ⚡ serverless functions.

15 lines (14 loc) 299 B
/* * A standard 404 API response that can be on * a serverless function. * Created On 30 April 2023 */ /** * A function that sends a 404 not found response. */ export function notFound(_, res) { return res.status(404).json({ error: false, message: 'Not found', }); }