fix: 요청 오류 예외를 500 대신 400 으로 응답 - #29
Closed
hyeonszz wants to merge 1 commit into
Closed
Conversation
필수 헤더 누락 / 본문 파싱 실패 / 파라미터 타입 불일치는 400 으로 매핑한다. 명시 핸들러가 없으면 catch-all 이 이들을 500 으로 처리한다. - MissingRequestHeaderException → reasons 에 헤더명 - HttpMessageNotReadableException - MethodArgumentTypeMismatchException 검증: 헤더 없이 GET /api/missions/today(/status) 호출 시 400 + 헤더명 응답 확인. clean build 통과. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changes클라이언트 입력 예외 처리
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
필수 헤더 누락 / 본문 파싱 실패 / 파라미터 타입 불일치는 400 으로 매핑한다.
명시 핸들러가 없으면 catch-all 이 이들을 500 으로 처리한다.
검증: 헤더 없이 GET /api/missions/today(/status) 호출 시 400 + 헤더명 응답 확인. clean build 통과.
Summary by CodeRabbit