Explicit return from play action
问题 I have following action def login: Result = Action(parse.json) { request => if (/* Let's we say here is some validation */) { return BadRequest("bad") } Ok("all ok") } This is giving me an Error. Intellij is suggesting Action[JsValue] type. When I say return will be of that type, I am getting again error on BadRequest line, because types doesn't match. I tried searching about this problem, and I found some answers which are suggesting to set Action[AnyContent] as return type. But I am STILL