An assertion related to the HTTP call is moved closer to the code involved.