Skip to content

Commit

Permalink
Merge pull request #15898 from hennevogel/bugfix/x-opensuse-errorcode
Browse files Browse the repository at this point in the history
Set X-Opensuse-Errorcode for pundit errors
  • Loading branch information
hennevogel committed Mar 27, 2024
2 parents 599e101 + cbfcf8a commit a68cb1e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -19,6 +19,7 @@ module RescueAuthorizationHandler
format.any do
@errorcode = authorization_errorcode(exception)
@summary = authorization_message(exception)
response.headers['X-Opensuse-Errorcode'] = @errorcode
render template: 'status', status: :forbidden, formats: [:xml]
end
end
Expand Down

0 comments on commit a68cb1e

Please sign in to comment.