A cookie is set with a default error message ( I think you can customize it) on the request.
Try adding this in the controller and pass the error ( Option[String]
) in your view.
val error = request.cookies.get("PLAY_FLASH").map(_.value)
This shoud do the trick.