Error handling of HTTP request and XML::Simple are added now