Can't return status 101 for websocket

This is the tutorial I am following:

Part of the tutorial shows this code

  return new Response(null, {
    status: 101,
    webSocket: client,

But when it runs it errors saying
Responses may only be constructed with status codes in the range 200 to 599, inclusive.

Is this a bug with cloudflare or am I missing something?