[ 
https://issues.apache.org/jira/browse/SLING-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573648#action_12573648
 ] 

Lars Trieloff commented on SLING-292:
-------------------------------------

Felix, I think this should be fixed as well. Displaying the status code is 
nice, but sending the correct HTTP response is even more important.

Tobias, I do not understand your comment, normal form posts will get a styled 
error message for 500 and AJAX posts can evaluate the status code easily 
without parsing the response (http://www.w3schools.com/xml/xml_http.asp)

> µjax Post Servlet does not use correct HTTP status codes
> --------------------------------------------------------
>
>                 Key: SLING-292
>                 URL: https://issues.apache.org/jira/browse/SLING-292
>             Project: Sling
>          Issue Type: Bug
>          Components: ujax
>            Reporter: Lars Trieloff
>
> The µjax Post Servlet does not use correct HTTP status codes when trying to 
> write nodes without permissions. Expected status code is 403 (forbidden), if 
> no user is logged in (no credentials in the request), status code 401 might 
> be more appropriate

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to