2025SELab2-project-Dwengo/backend/src/exceptions/forbidden-exception.ts

12 lines
280 B
TypeScript

import { ExceptionWithHttpState } from './exception-with-http-state.js';
/**
* Exception for HTTP 403 Forbidden
*/
export class ForbiddenException extends ExceptionWithHttpState {
status = 403;
constructor(message = 'Forbidden') {
super(403, message);
}
}