Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

클라이언트 입력값에 대한 처리 개선 완료 #350

Merged
merged 1 commit into from
May 17, 2024

Conversation

limehee
Copy link
Collaborator

@limehee limehee commented May 17, 2024

Summary

#349

OTP 인증번호에 숫자 이외의 문자열이 포함된 경우 NumberFormatException과 함께 상태코드 500이 반환되고 있습니다.
현재 백엔드 시스템에서 OTP를 제외하더라도 항상 올바른 타입에 대해서만 로직이 실행되도록 하고 있기에 NumberFormatException가 발생한 경우 400 Bad Request로 처리하도록 변경합니다.

Tasks

  • 예외 핸들러에서 NumberFormatException에 대해 400 Bad Request로 응답하도록 변경

ETC

Screenshot

변경 전
image

변경 후
image

@limehee limehee added the 🔨 Refactor 코드 수정 및 개선 label May 17, 2024
@limehee limehee self-assigned this May 17, 2024
@limehee limehee linked an issue May 17, 2024 that may be closed by this pull request
1 task
@limehee limehee merged commit c7ede44 into develop May 17, 2024
1 check failed
@limehee limehee deleted the refactor/#349 branch May 17, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Refactor 코드 수정 및 개선
Projects
None yet
Development

Successfully merging this pull request may close these issues.

클라이언트 입력값에 대한 처리 개선
1 participant