UNPKG

burger-api

Version:

<p align="center"> <img src="https://github.com/user-attachments/assets/0d9b376e-1d89-479a-aa7f-e7ee3c6b2342" alt="BurgerAPI logo"/> </p>

18 lines (17 loc) 484 B
/** * The method not allowed response */ export const METHOD_NOT_ALLOWED = new Response('Method Not Allowed', { status: 405, }); /** * The not found response */ export const NOT_FOUND = new Response('Not Found', { status: 404 }); /** * The OpenAPI error response */ export const OPENAPI_ERROR = Response.json({ error: 'API Router not configured', message: 'Please provide an apiDir option when initializing the Burger instance to enable OpenAPI documentation.', });