code: public function withStatus($status, $reasonPhrase = '')
      {
          $response = clone $this;
          $response->status = $status;
          $response->reason = $reasonPhrase;
  
          return $response;
      }
docs: {@inheritdoc}