Skip to content

Instantly share code, notes, and snippets.

@deepakmehra10
Created July 1, 2019 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepakmehra10/7bbdd0e6710433a496e7a8299179614d to your computer and use it in GitHub Desktop.
Save deepakmehra10/7bbdd0e6710433a496e7a8299179614d to your computer and use it in GitHub Desktop.
.retrieve()
.onStatus(HttpStatus::is4xxClientError, response ->
Mono.error(new MyCustomException())
)
.onStatus(HttpStatus::is5xxServerError, response ->
Mono.error(new MyCustomException())
)
.bodyToFlux(Post.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment