fix for response codes from the server