mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-10-16 17:09:08 +02:00
Add authentication and authorization
This commit is contained in:
11
backend/karaoqueue-backend/src/exceptions/HttpException.ts
Normal file
11
backend/karaoqueue-backend/src/exceptions/HttpException.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
class HttpException extends Error {
|
||||
public status: number;
|
||||
public message: string;
|
||||
constructor(status: number, message: string) {
|
||||
super(message);
|
||||
this.status = status;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
|
||||
export default HttpException;
|
Reference in New Issue
Block a user