Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

fix(errors): ApiError 생성자 status→code 자동 매핑 적용#216

Merged
selentia merged 1 commit into
developfrom
fix/apierror-statuscode-mapping
Nov 27, 2025
Merged

fix(errors): ApiError 생성자 status→code 자동 매핑 적용#216
selentia merged 1 commit into
developfrom
fix/apierror-statuscode-mapping

Conversation

@selentia
Copy link
Copy Markdown
Contributor

주요 변경 사항

  • ApiError 생성자에 statusCode 기반 기본 ErrorCode 매핑 테이블을 추가했습니다.
  • 생성자 호출 시 code가 전달되지 않으면 자동 매핑을 사용합니다.

- new ApiError(401, ...) 호출 시 code 기본값이 INTERNAL_ERROR로 지정되던 문제 수정
- HTTP statusCode에 따라 적절한 ErrorCode 자동 설정하도록 매핑 추가
- static factory 메서드 외 직접 생성자 사용 시도에도 안정적으로 코드 분기 가능
@selentia selentia added the fix label Nov 27, 2025
@selentia selentia merged commit 009d31b into develop Nov 27, 2025
1 check passed
@selentia selentia deleted the fix/apierror-statuscode-mapping branch November 27, 2025 02:06
@selentia selentia mentioned this pull request Nov 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant