Handle server response codes