Note that when a Status 101 is returned the server must generate an Upgrade header in its response indicating which protocol it has switched to. Also note that the server should only accept switching protocols (and thus return Status 101) when it's advantageous to do so, such as when it upgrades to a newer version of HTTP.