We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using org.scalatra.NotFound as result of an action. With parameter:
NotFound("some value") returns 404
Without parameter:
NotFound returns 200
Is it correct?
issue-related: #390
The text was updated successfully, but these errors were encountered:
The problem is that you didn't call NotFound with (), it's important to execute the apply of NotFound object where it return an ActionResult instance. see it: https://github.com/scalatra/scalatra/blob/2.4.x/core/src/main/scala/org/scalatra/ActionResult.scala#L132-L134
So, when you just write "NotFound", the action return value is an object where it's rendered like a simple string value.
Sorry, something went wrong.
Close because this is not a bug of Scalatra.
No branches or pull requests
I'm using org.scalatra.NotFound as result of an action.
With parameter:
Without parameter:
Is it correct?
issue-related: #390
The text was updated successfully, but these errors were encountered: