インターフェースの使用
org.springframework.web.client.ResponseErrorHandler
ResponseErrorHandler を使用するパッケージ
org.springframework.web.client 内の ResponseErrorHandler 使用
ResponseErrorHandler を実装している org.springframework.web.client のクラス型 ResponseErrorHandler のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明RestClient.Builder.defaultStatusHandler(ResponseErrorHandler errorHandler) すべてのレスポンスに適用するデフォルトのステータスハンドラーを登録します。RestClient.ResponseSpec.onStatus(ResponseErrorHandler errorHandler) 特定のエラーステータスコードをエラーハンドラーにマップする関数を提供します。voidRestTemplate.setErrorHandler(ResponseErrorHandler errorHandler) エラーハンドラーを設定します。