Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1628

Default status code for a post that results in an error should be 500 instead of 200

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • API 2.0.2, API 2.0.4, API 2.0.6, API 2.0.8
    • API 2.1.0
    • API
    • None

    Description

      If a POST causes an unexpected exception and no status code has been set on the HtmlResponse object, then the default status code should be 500 to indicate that there was an error. Previously, if no status code was set on the HtmlResponse object, the response was assumed to be successful and returned a 200 status code.

      Attachments

        Activity

          People

            enorman Eric Norman
            enorman Eric Norman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: