File tree 1 file changed +4
-4
lines changed
framework-docs/modules/ROOT/pages/web/webflux-webclient
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 97
97
Mono<Person> result = client.get()
98
98
.uri("/persons/{id}", id).accept(MediaType.APPLICATION_JSON)
99
99
.retrieve()
100
- .onStatus(HttpStatus ::is4xxClientError, response -> ...)
101
- .onStatus(HttpStatus ::is5xxServerError, response -> ...)
100
+ .onStatus(HttpStatusCode ::is4xxClientError, response -> ...)
101
+ .onStatus(HttpStatusCode ::is5xxServerError, response -> ...)
102
102
.bodyToMono(Person.class);
103
103
----
104
104
@@ -109,8 +109,8 @@ Kotlin::
109
109
val result = client.get()
110
110
.uri("/persons/{id}", id).accept(MediaType.APPLICATION_JSON)
111
111
.retrieve()
112
- .onStatus(HttpStatus ::is4xxClientError) { ... }
113
- .onStatus(HttpStatus ::is5xxServerError) { ... }
112
+ .onStatus(HttpStatusCode ::is4xxClientError) { ... }
113
+ .onStatus(HttpStatusCode ::is5xxServerError) { ... }
114
114
.awaitBody<Person>()
115
115
----
116
116
======
You can’t perform that action at this time.
0 commit comments