error handling for URL server errors e.g 500 error