インターフェースの使用
org.springframework.web.client.RestClient.ResponseSpec.ErrorHandler
org.springframework.web.client 内の RestClient.ResponseSpec.ErrorHandler 使用
修飾子と型メソッド説明RestClient.Builder.defaultStatusHandler
(PredicateSE<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) すべてのレスポンスに適用するデフォルトのステータスハンドラーを登録します。RestClient.ResponseSpec.onStatus
(PredicateSE<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) 特定のエラーステータスコードをエラーハンドラーにマップする関数を提供します。