Fix HttpApi and JsonApi after the HttpRequest and HttpResponse refactoring