bugfix fixes issues sending correct browser response codes