error handling for getCapabilities url