Skip to content

Commit

Permalink
📝 docs: 에러 코드 설명 추가 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Nov 30, 2023
1 parent 5ad28cd commit cf40d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/api/response-created.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const CustomApiCreatedResponse = (
ApiResponse({ status: 401, description: '인증되지 않은 요청입니다.' }),
ApiResponse({ status: 403, description: '접근 권한이 없습니다.' }),
ApiResponse({ status: 404, description: '리소스를 찾을 수 없습니다.' }),
ApiResponse({ status: 409, description: '이미 존재하는 리소스입니다.' }),
ApiResponse({ status: 500, description: '서버 내부 오류가 발생했습니다.' }),
);
};
1 change: 1 addition & 0 deletions src/common/api/response-ok.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const CustomApiOKResponse = (model: any, apiDescription: string) => {
ApiResponse({ status: 401, description: '인증되지 않은 요청입니다.' }),
ApiResponse({ status: 403, description: '접근 권한이 없습니다.' }),
ApiResponse({ status: 404, description: '리소스를 찾을 수 없습니다.' }),
ApiResponse({ status: 409, description: '이미 존재하는 리소스입니다.' }),
ApiResponse({ status: 500, description: '서버 내부 오류가 발생했습니다.' }),
);
};

0 comments on commit cf40d53

Please sign in to comment.