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

Tobias Bocanegra commented on SLING-292:
----------------------------------------

the problem is that if you are sending POSTs using a normal html form, it's not 
easy for a js client to catch errors if the server responds with 500. the 
client needs to 'parse' the HTML response and check for errors there.

maybe we can control the error behavior with some flag in case you do ajax 
requests and you can deal with 500's.

> µ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