Major Backend Single Responsibility Update part 1

This commit is contained in:
X4Lo committed 2025-01-25 04:29:42 +01:00
1 parent 65177c7553
commit cbdffb21e3
41 files changed
+1723 -888

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const CustomError = require('./CustomError');
/**
* Represents an error for HTTP 400 Bad Request.
* This error indicates that the server cannot process the request due to a client error.
*/
class BadRequestError extends CustomError {
constructor(message) {
super(message);
}
statusCode() {
return 400; // Bad Request
}
}
module.exports = BadRequestError;