         // Check for appropriate HTTP method
         if (request->method() != HTTP_PATCH) {
           AsyncWebServerResponse *response =
-              request->beginResponse(405, PSTR(HTTP_MIMETYPE_JSON));
-          response->addHeader(PSTR(HTTP_HEADER_SERVER), SERVER_SIGNATURE);
-          response->addHeader(PSTR(HTTP_HEADER_ALLOW), PSTR("GET, PATCH"));
+              request->beginResponse(405, HTTP_MIMETYPE_JSON);
+          response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
+          response->addHeader(HTTP_HEADER_ALLOW, "GET, PATCH");
           request->send(response);
         }
 

      root.printTo(buffer, sizeof(buffer));

      AsyncWebServerResponse *response =
          request->beginResponse(401, PSTR(HTTP_MIMETYPE_JSON), buffer);
      response->addHeader(PSTR(HTTP_HEADER_SERVER), SERVER_SIGNATURE);
      request->send(response);

      return false;

        root.printTo(buffer, sizeof(buffer));

        AsyncWebServerResponse *response =
            request->beginResponse(200, HTTP_MIMETYPE_JSON, buffer);
        response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
        request->send(response);
      }
    });
