Sling
  1. Sling
  2. SLING-1501

JSONResponse doesn't set the status code on the response

    Details

      Description

      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.

      1. jsonresponse.patch
        4 kB
        Simon Gaeremynck

        Activity

        Hide
        Simon Gaeremynck added a comment -

        Sets the status in JSONresponse
        Adds in a test case to check for a proper statuscode

        Show
        Simon Gaeremynck added a comment - Sets the status in JSONresponse Adds in a test case to check for a proper statuscode
        Hide
        Vidar S. Ramdal added a comment -

        Thank you for the patch! I have applied it in rev #937970.

        Show
        Vidar S. Ramdal added a comment - Thank you for the patch! I have applied it in rev #937970.

          People

          • Assignee:
            Vidar S. Ramdal
            Reporter:
            Simon Gaeremynck
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development