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

10 lines
270 B
TypeScript

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