mapRejections
Description
Low level directive – unless you're sure you need to be working on this low-level you might instead want to try the handleRejections directive which provides a nicer DSL for building rejection handlers.
The mapRejections
directive is used as a building block for Custom Directives to transform a list
of rejections from the inner route to a new list of rejections.
See Transforming the Response for similar directives.
Example
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: write example snippets for Akka HTTP Java DSL #20466.
Contents