client request error handling