(message = 'Access denied')
| 60 | } |
| 61 | |
| 62 | export function forbiddenResponse(message = 'Access denied'): NextResponse { |
| 63 | return errorResponse('FORBIDDEN', message, 403) |
| 64 | } |
| 65 | |
| 66 | export function notFoundResponse(resource: string): NextResponse { |
| 67 | return errorResponse('NOT_FOUND', `${resource} not found`, 404) |
nothing calls this directly
no test coverage detected