- All Superinterfaces:
- Rejection
- All Known Subinterfaces:
- CorsRejection, CustomRejection, RejectionWithOptionalCause
- All Known Implementing Classes:
- CorsRejection, MalformedFormFieldRejection, MalformedHeaderRejection, MalformedQueryParamRejection, ValidationRejection
public interface Rejection
extends Rejection
A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered
up over the course of a Route evaluation and finally converted to pekko.http.scaladsl.model.HttpResponse
s by the
handleRejections
directive, if there was no way for the request to be completed.