/**
* Returns a HTTP status line from specified response.
*
* @param Response $response
* @return string HTTP status line.
*/
public static function formatAsStatusString(Response $response)
{
return 'HTTP/' . $response->getHttpVersion() . ' ' . $response->getStatusCode() . ' ' . $response->getStatusMessage();
}