Skip to content

Commit

Permalink
[shopsys] don't show 500 error page when you have 405 http code (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
sspooky13 authored and grossmannmartin committed Aug 15, 2023
1 parent b968637 commit 99d490e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Component/Error/ErrorPagesFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function getErrorPageStatusCodeByStatusCode(int $statusCode): int
switch ($statusCode) {
case Response::HTTP_NOT_FOUND:
case Response::HTTP_FORBIDDEN:
case Response::HTTP_METHOD_NOT_ALLOWED:
return static::PAGE_STATUS_CODE_404;
case Response::HTTP_GONE:
return static::PAGE_STATUS_CODE_410;
Expand Down

0 comments on commit 99d490e

Please sign in to comment.