You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2013/11/28 12:19:35 UTC

[jira] [Commented] (OFBIZ-5409) JSON Response does not set http status on error

    [ https://issues.apache.org/jira/browse/OFBIZ-5409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834734#comment-13834734 ] 

Adrian Crum commented on OFBIZ-5409:
------------------------------------

It might be better to make the array a static field.

>From my perspective, a 500 status should be returned if an exception was thrown while invoking the service. If the service completed successfully, then a 200 status should be returned and the JSON client checks the results of the service call. That is just my opinion though, others may disagree.


> 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: Improvement
>          Components: ALL APPLICATIONS
>    Affects Versions: SVN trunk
>            Reporter: Gareth Carter
>            Priority: Trivial
>         Attachments: CommonEvents.patch
>
>
> 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#6144)