function isValidStatusCode(code) {
  return (
    (code >= 1000 &&
      code <= 1014 &&
      code !== 1004 &&
      code !== 1005 &&
      code !== 1006) ||
    (code >= 3000 && code <= 4999)
  );
}
Checks if a status code is allowed in a close frame.

@param {Number} code The status code
@return {Boolean} `true` if the status code is valid, else `false`
@public