Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.1-RC1
-
Component/s: Controllers
-
Labels:None
-
Environment:N/A
Description
It would be nice if we could do something like:
render(template: "/common/errors", model: [bean: iterationType], status: 500)
Instead of:
response.setStatus(500)
render(template: "/common/errors", model: [bean: iterationType])
For sending HTTP status to the browser. It's nice for doing AJAX where there is an error callback in the JS code.
Issue Links
- duplicates
-
GRAILS-3803
Make it easier to return status codes - render(status:n) or error(status:n) or both
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
the render method now accepts a status argument