(resource: string)
| 64 | } |
| 65 | |
| 66 | export function notFoundResponse(resource: string): NextResponse { |
| 67 | return errorResponse('NOT_FOUND', `${resource} not found`, 404) |
| 68 | } |
| 69 | |
| 70 | export function badRequestResponse(message: string, details?: unknown): NextResponse { |
| 71 | return errorResponse('BAD_REQUEST', message, 400, details) |
no test coverage detected