Showing compile error when converting HttpRequest, HttpResponse to Request, Response