KAZOO-2363: do not remap the valid 6xx codes
allow traffic from the same server (RTMP gateway)
Adding a few more checks before allowing a websocket