From 7c639e070f6020b47708ebfd172d92a41f096211 Mon Sep 17 00:00:00 2001 From: Aleksey Stramunin <1451700+metaliciouz@users.noreply.github.com> Date: Wed, 12 Jul 2023 11:57:10 +0300 Subject: [PATCH] Update error-handling.md --- docs/v4/middleware/error-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/v4/middleware/error-handling.md b/docs/v4/middleware/error-handling.md index 26b4db49..49120b7d 100644 --- a/docs/v4/middleware/error-handling.md +++ b/docs/v4/middleware/error-handling.md @@ -235,7 +235,7 @@ The base class `HttpSpecializedException` extends `Exception` and comes with the You can extend the `HttpSpecializedException` class if they need any other response codes that we decide not to provide with the base repository. Example if you wanted a 504 gateway timeout exception that behaves like the native ones you would do the following: ```php -class HttpForbiddenException extends HttpSpecializedException +class HttpGatewayTimeoutException extends HttpSpecializedException { protected $code = 504; protected $message = 'Gateway Timeout.';