diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index d6fbfba0b3a50..c5c4237bc5776 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -515,6 +515,16 @@ public function getStatusCode() return $this->statusCode; } + /** + * Retrieves the status text for the current web response. + * + * @return string Status text + */ + public function getStatusText() + { + return $this->statusText; + } + /** * Sets the response charset. *