[
https://issues.apache.org/jira/browse/SLING-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon Gaeremynck updated SLING-1501:
------------------------------------
Attachment: jsonresponse.patch
Sets the status in JSONresponse
Adds in a test case to check for a proper statuscode
> JSONResponse doesn't set the status code on the response
> --------------------------------------------------------
>
> Key: SLING-1501
> URL: https://issues.apache.org/jira/browse/SLING-1501
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Post 2.0.6
> Reporter: Simon Gaeremynck
> Fix For: Servlets Post 2.0.6
>
> Attachments: jsonresponse.patch
>
>
> When we are doing POST operations we use the Accept header set to
> application/json so we get a json response back.
> However, when an operation fails for some reason, there is no status code set
> on the response. (It is defined in the json response itself though).
> This patch should set a status code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.