diff --git a/src/Illuminate/Http/Exceptions/PostTooLargeException.php b/src/Illuminate/Http/Exceptions/PostTooLargeException.php index 640b8ec74c1a..5c56e3bcaa07 100644 --- a/src/Illuminate/Http/Exceptions/PostTooLargeException.php +++ b/src/Illuminate/Http/Exceptions/PostTooLargeException.php @@ -8,7 +8,7 @@ class PostTooLargeException extends HttpException { /** - * PostTooLargeException constructor. + * Create a new "post too large" exception instance. * * @param string|null $message * @param \Exception|null $previous diff --git a/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php b/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php index 4f8d60876ec2..0ba337f6090d 100644 --- a/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php +++ b/src/Illuminate/Http/Exceptions/ThrottleRequestsException.php @@ -3,12 +3,12 @@ namespace Illuminate\Http\Exceptions; use Exception; -use Symfony\Component\HttpKernel\Exception\HttpException; +use Symfony\Component\HttpKernel\Exception\TooManyRequestsHttpException; -class ThrottleRequestsException extends HttpException +class ThrottleRequestsException extends TooManyRequestsHttpException { /** - * Create a new exception instance. + * Create a new throttle requests exception instance. * * @param string|null $message * @param \Exception|null $previous @@ -18,6 +18,6 @@ class ThrottleRequestsException extends HttpException */ public function __construct($message = null, Exception $previous = null, array $headers = [], $code = 0) { - parent::__construct(429, $message, $previous, $headers, $code); + parent::__construct(null, $message, $previous, $code, $headers); } }