Implemented WebException handling for Http code responses.