play-api-refiner icon indicating copy to clipboard operation
play-api-refiner copied to clipboard

OpenAPI helper gives 200 code even if my Action does not return OK

Open loicdescotte opened this issue 6 years ago • 1 comments

OpenAPI helper gives 200 code even if my Action does not return OK.

For example , this should be a 303 :

def forward: Action[Unit] = Action(parse.empty) {
    implicit req =>
      Redirect("/doc")
  }

loicdescotte avatar Oct 16 '19 11:10 loicdescotte

Yes, for now. There is now way to infer the response code. With the milestone 1, 200 is by default 🙈

dgouyette avatar Oct 16 '19 12:10 dgouyette