Skip to content

Commit

Permalink
refactor : BAD_REQUEST -> SEVER_ERROR
Browse files Browse the repository at this point in the history
* 서버 네트워크 환경 등의 이유로 발생한 에러를 BAD_REQUEST로 잘못 명시하여 수정
  • Loading branch information
sk000801 committed Feb 22, 2024
1 parent b486bd8 commit 4ae706a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/nest/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class AuthService {

throw new CatchyException(
'SERVICE_ERROR',
HTTP_STATUS_CODE.BAD_REQUEST,
HTTP_STATUS_CODE.SERVER_ERROR,
ERROR_CODE.SERVICE_ERROR,
);
}
Expand All @@ -84,7 +84,7 @@ export class AuthService {
this.logger.error(`auth.service - signup : ALREADY_EXIST_EMAIL`);
throw new CatchyException(
'ALREADY_EXIST_EMAIL',
HTTP_STATUS_CODE.BAD_REQUEST,
HTTP_STATUS_CODE.SERVER_ERROR,
ERROR_CODE.ALREADY_EXIST_EMAIL,
);
}
Expand All @@ -100,7 +100,7 @@ export class AuthService {

throw new CatchyException(
'SERVICE_ERROR',
HTTP_STATUS_CODE.BAD_REQUEST,
HTTP_STATUS_CODE.SERVER_ERROR,
ERROR_CODE.SERVICE_ERROR,
);
}
Expand Down Expand Up @@ -208,7 +208,7 @@ export class AuthService {

throw new CatchyException(
'SERVICE_ERROR',
HTTP_STATUS_CODE.BAD_REQUEST,
HTTP_STATUS_CODE.SERVER_ERROR,
ERROR_CODE.SERVICE_ERROR,
);
}
Expand Down

0 comments on commit 4ae706a

Please sign in to comment.