set error code to if no response code given