Revised HTTP code handling and added feature to remove server.