Add request error handling