Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21337

Return correct HTTP code for access denied page

    Details

      Description

      When accessing a page for which the user does not have access, an HTTP status code 200 is returned, whereas the more correct one would be 401 (Authorization Required).

      The proposed enhancement is to make the following part of the default settings, in error.ini:

      [ErrorSettings-kernel]
      HTTPError[1]=401
       
      [HTTPError-401]
      HTTPName=Authorization Required
      

        Issue Links

          Activity

          Show
          Filipe Dobreira (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-legacy/pull/697
          Show
          André Rømcke added a comment - Merged in https://github.com/ezsystems/ezpublish-legacy/commit/1312a42ce6121242f79e994cc94b7d1229e9529a

            People

            • Assignee:
              Unassigned
              Reporter:
              Filipe Dobreira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: