Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error 500 instead of 403 if previous exception is provided to AccessDeniedException #9544

Copy link
Copy link
Closed
@yannickroger

Description

@yannickroger
Issue body actions

In a controller, add the following code:

$e = new Exception();
throw new AccessDeniedException('Access Denied', $e);

An error 500 should be returned instead of a 403.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.