fix up http response codes to match spec