src/Message/MessageFactory.php
public function response($version, $status, $reason, $headers = array(), $body = '')
    {
        return new Response($status, $headers, $this->body($body), $version, $reason);
    }
public function response($version, $status, $reason, $headers = array(), $body = '')
    {
        return new Response($status, $headers, $this->body($body), $version, $reason);
    }
public function response ( $ version , $ status , $ reason , $ headers = array ( ) , $ body = '' ) { return new Response ( $ status , $ headers , $ this -> body ( $ body ) , $ version , $ reason ) ; }
Creates a new instance of ResponseInterface for the given response parameters

@param string $version
@param int    $status
@param string $reason
@param array  $headers
@param ReadableStreamInterface|string $body
@return Response
@uses self::body()
Creates a new instance of ResponseInterface for the given response parameters