Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4089

More significant HTTP status codes for error responses

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 M1
    • Fix Version/s: 2.0 M2
    • Labels:
      None
    • Difficulty:
      Trivial
    • Similar issues:

      Description

      Several error messages come with the default 200 HTTP status code, indicating success, although the request did not complete normally. Besides adding more semantics, this is also more friendly with services and AJAX calls.

      • access denied -> 403 Forbidden
      • document locked -> 423 Locked
      • invalid action on non-existing document -> 404 Not Found
      • invalid action on wrong document -> 400 Bad Request
      • invalid target for copy and rename -> 409 Conflict
      • template does not exist -> 400 Bad Request

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                sdumitriu Sergiu Dumitriu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: