diff --git a/src/core/hle/service/http_c.cpp b/src/core/hle/service/http_c.cpp
index 72dc2a4501..b4611c748a 100644
--- a/src/core/hle/service/http_c.cpp
+++ b/src/core/hle/service/http_c.cpp
@@ -54,8 +54,7 @@ void HTTP_C::CreateContext(Kernel::HLERequestContext& ctx) {
         LOG_ERROR(Service_HTTP, "invalid request method={}", static_cast<u32>(method));
 
         IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);
-        rb.Push(ResultCode(ErrCodes::InvalidContext, ErrorModule::HTTP, ErrorSummary::InvalidState,
-                           ErrorLevel::Permanent));
+        rb.Push(ERROR_CONTEXT_ERROR);
         rb.PushMappedBuffer(buffer);
         return;
     }
diff --git a/src/core/hle/service/http_c.h b/src/core/hle/service/http_c.h
index e2d89e10d4..8b77fb8af8 100644
--- a/src/core/hle/service/http_c.h
+++ b/src/core/hle/service/http_c.h
@@ -4,6 +4,7 @@
 
 #pragma once
 
+#include <memory>
 #include <string>
 #include <unordered_map>
 #include <vector>