fix: don't log an error for http 404, let the logger do it

This commit is contained in:
Wyatt Johnson
2018-09-14 11:48:48 -06:00
parent 1564b380b1
commit ce95467145
6 changed files with 32 additions and 197 deletions
+10
View File
@@ -231,6 +231,15 @@ class ErrContainsProfanity extends TalkError {
}
}
class ErrHTTPNotFound extends TalkError {
constructor() {
super('http not found', {
translation_key: 'NOT_FOUND',
status: 404,
});
}
}
class ErrNotFound extends TalkError {
constructor() {
super('not found', {
@@ -432,4 +441,5 @@ module.exports = {
ErrSpecialChars,
ErrUsernameTaken,
ExtendableError,
ErrHTTPNotFound,
};