diff --git a/src/main.cpp b/src/main.cpp index 62f4e75..9b65884 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -337,7 +337,7 @@ void setup() { }); server.onNotFound([](AsyncWebServerRequest *request){ - request->send(404, "text/plain", "The content you are looking for was not found."); + request->send(200, "application/json", "{'msg':'The content you are looking for was not found'}"); }); // Send a GET request to /gpio?output=&state=