Introduced HttpMethod and HttpStatusCode. Refactored Upload for use of
the above.