[
https://issues.apache.org/jira/browse/OFBIZ-5409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869362#comment-13869362 ]
Gareth Carter commented on OFBIZ-5409:
--------------------------------------
Excellent. Well done Jacques. I think the original purpose of this issue should be discarded. I may try and work on a function to put into util.js - it might also be worth considering namespaces in javascript but that can discussed later.
> JSON Response does not set http status on error
> -----------------------------------------------
>
> Key: OFBIZ-5409
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5409> Project: OFBiz
> Issue Type: Bug
> Components: ALL APPLICATIONS
> Affects Versions: Release Branch 11.04, SVN trunk, Release Branch 12.04, Release Branch 13.07
> Reporter: Gareth Carter
> Assignee: Jacques Le Roux
> Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04, Release Branch 13.07
>
> Attachments: CommonEvents.patch, OFBIZ-5409 - Remove internal attributes for security reason and secure json get.patch, OFBIZ-5409 - Remove internal attributes for security reason.patch, OFBIZ-5409 - Remove internal attributes for security reason.patch, before-after.diff
>
>
> When a json response is sent and there was an error in the service called, it does not set the http status. Currently status code is always 200 but it might be more appropriate to send an error code such as 500.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)