title: DefaultPropertiesPersister Load from InputStream and Handle Http Error
body: <p>I am using DefaultPropertiesPersister of spring to load my properties hosted on another server in Input Stream as shown below:</p>
  
  <pre><code>Resource resource = this.resourceLoader.getResource(url);
  InputStream is = resource.getInputStream();
  propertiesPersister.load(props, new InputStreamReader(is, encoding));
  </code></pre>
  
  <p>If URL returns http error like 404-Page not found or 500-Internal Server Error, how can I handle that.</p>
  
  <p>I am asking because, in case of 404 and 500 errors server will return an error page, which is convertible to InputStream, which makes it a valid input to PropertiesPersister.</p>
  
  <p>I want to catch and handle http errors, kindly help.</p>