src/mako/error/handlers/web/ProductionHandler.php
protected function getStatusCodeAndMessage(Throwable $exception): array
	{
		if($exception instanceof HttpException)
		{
			$message = $exception->getMessage();
		}

		if(empty($message))
		{
			$message = 'An error has occurred while processing your request.';
		}

		return ['code' => $this->getStatusCode($exception), 'message' => $message];
	}
protected function getStatusCodeAndMessage(Throwable $exception): array
	{
		if($exception instanceof HttpException)
		{
			$message = $exception->getMessage();
		}

		if(empty($message))
		{
			$message = 'An error has occurred while processing your request.';
		}

		return ['code' => $this->getStatusCode($exception), 'message' => $message];
	}
protected function getStatusCodeAndMessage ( Throwable $ exception ) : array { if ( $ exception instanceof HttpException ) { $ message = $ exception -> getMessage ( ) ; } if ( empty ( $ message ) ) { $ message = 'An error has occurred while processing your request.' ; } return [ 'code' => $ this -> getStatusCode ( $ exception ) , 'message' => $ message ] ; }
Returns status code and message.

@param  \Throwable $exception Exception
@return array
Returns status code and message .