diff --git a/Projects/Domains/UserDomain/Sources/API/UserAPI.swift b/Projects/Domains/UserDomain/Sources/API/UserAPI.swift index 3b88ee49d..90f56a558 100644 --- a/Projects/Domains/UserDomain/Sources/API/UserAPI.swift +++ b/Projects/Domains/UserDomain/Sources/API/UserAPI.swift @@ -141,7 +141,9 @@ extension UserAPI: WMAPI { return [ 400: .badRequest, 401: .tokenExpired, + 403: .forbidden, 404: .notFound, + 409: .conflict, 429: .tooManyRequest, 500: .internalServerError ] diff --git a/Projects/Features/BaseFeature/Sources/ViewControllers/MultiPurposePopupViewController.swift b/Projects/Features/BaseFeature/Sources/ViewControllers/MultiPurposePopupViewController.swift index 7e2740ebd..704619da2 100644 --- a/Projects/Features/BaseFeature/Sources/ViewControllers/MultiPurposePopupViewController.swift +++ b/Projects/Features/BaseFeature/Sources/ViewControllers/MultiPurposePopupViewController.swift @@ -117,8 +117,6 @@ private extension MultiPurposePopupViewController { private extension MultiPurposePopupViewController { func configureUI() { - limitLabel.text = "/\(viewModel.type.textLimitCount)" - titleLabel.text = viewModel.type.title titleLabel.font = DesignSystemFontFamily.Pretendard.medium.font(size: 18) titleLabel.textColor = DesignSystemAsset.BlueGrayColor.gray900.color @@ -155,6 +153,7 @@ private extension MultiPurposePopupViewController { confirmLabel.font = DesignSystemFontFamily.Pretendard.light.font(size: 12) confirmLabel.isHidden = true + limitLabel.text = "/\(viewModel.type.textLimitCount)자" limitLabel.font = DesignSystemFontFamily.Pretendard.light.font(size: 12) limitLabel.textColor = DesignSystemAsset.BlueGrayColor.gray500.color diff --git a/Projects/Features/MyInfoFeature/Sources/Reactors/MyInfoReactor.swift b/Projects/Features/MyInfoFeature/Sources/Reactors/MyInfoReactor.swift index f7ffbbc91..06f465b98 100644 --- a/Projects/Features/MyInfoFeature/Sources/Reactors/MyInfoReactor.swift +++ b/Projects/Features/MyInfoFeature/Sources/Reactors/MyInfoReactor.swift @@ -295,10 +295,14 @@ private extension MyInfoReactor { ) .catch { error in let error = error.asWMError - return .concat( - .just(.showToast(error.errorDescription ?? LocalizationStrings.unknownErrorWarning)), - .just(.dismissEditSheet) - ) + if error == .conflict { + return .just(.showToast("키워드 또는 중복된 닉네임은 사용할 수 없습니다.")) + } else { + return .concat( + .just(.showToast(error.errorDescription ?? LocalizationStrings.unknownErrorWarning)), + .just(.dismissEditSheet) + ) + } } }