     root.printTo(buffer, sizeof(buffer));
 
     AsyncWebServerResponse *response =
-        request->beginResponse(400, PSTR(HTTP_MIMETYPE_JSON), buffer);
-    response->addHeader(PSTR(HTTP_HEADER_SERVER), SERVER_SIGNATURE);
+        request->beginResponse(400, HTTP_MIMETYPE_JSON, buffer);
+    response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
     request->send(response);
 
     return false;
   } else {
-    AsyncWebHeader *h = request->getHeader(PSTR(HTTP_HEADER_APIKEY));
+    AsyncWebHeader *h = request->getHeader(HTTP_HEADER_APIKEY);
     if (!h->value().equals(cfg.api_key)) {
 
       DynamicJsonBuffer jsonBuffer;

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

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

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

