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

[41] rest template 을 connection pool 로 관리하기 #51

Open
wants to merge 2 commits into
base: feature/user/47-order-list
Choose a base branch
from

Conversation

ohsuha
Copy link
Collaborator

@ohsuha ohsuha commented Oct 28, 2024

No description provided.

Comment on lines 56 to 65
switch (response.getStatusCode()) {
case UNAUTHORIZED:
throw new CustomException(ErrorCode.UNAUTHORIZED);
case FORBIDDEN:
throw new CustomException(ErrorCode.ACCESS_DENIED);
case NOT_FOUND:
throw new CustomException(ErrorCode.NOT_FOUND);
default:
throw new CustomException(ErrorCode.INTERNAL_SERVER_ERROR);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 케이스가 모든 상황에서 적절할지 고민해보면 좋을 것 같습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants