http errors added

This commit is contained in:
C
2023-01-19 11:53:24 +05:00
parent 92ebcbb613
commit b3fa29e4c5
7 changed files with 48 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
class not_found_error extends Error {
constructor(message) {
super(message)
this.status_code = 404
}
}
module.exports = not_found_error