If I am interpreting your question correctly, you want to know how to pattern match the Either
value? If so, you can do something like:
handleWith {
mr: MyRequest =>
(myactor ? mr).mapTo[Either[BadRequest, GoodResponse]] match {
case Left(badRequest) => someSortOf4xxx(badRequest)
case Right(goodResponse) => anOkResponse(goodResponse)
}
}