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

Return correct HTTP code for access denied page

    XMLWordPrintable

    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
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Filipe.Dobreira@ez.no Filipe Dobreira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: