     {
       return request->requestAuthentication();
     }
-    AsyncWebServerResponse *response = request->beginResponse( 200, HTML_HEADER );
+    AsyncWebServerResponse *response = request->beginResponse( 200, HEADER_HTML );
     //response->addHeader("Connection", "close");
     request->send(response);
   },

      {
        if ( !isxdigit( request->arg( "color" )[currentChar] ) )
        {
          return request->send( 400, HTML_HEADER, "Invalid char" );
        }
      }
      snprintf( channel[ channelNumber ].color, sizeof( channel[ channelNumber ].color ), "#%s", request->arg( "color" ).c_str() );
      snprintf( nvsKeyname, sizeof( nvsKeyname ), "channelcolor%i", channelNumber );
      preferences.putString( nvsKeyname, channel[channelNumber].color );
      response = request->beginResponseStream( HTML_HEADER );
      response->printf( "channel %i color set to %s", channelNumber + 1, channel[ channelNumber ].color );
      return request->send( response );
    }

    {
      if ( request->arg( "sensorname" ).length() >= sizeof( sensor->name ) )
      {
        return request->send( 400, HEADER_HTML, "Sensorname too long" );
      }
      if ( !request->hasArg( "number" ) )
      {
        return request->send( 400, HEADER_HTML, "No sensornumber" );
      }

      uint8_t sensorNumber = request->arg( "number" ).toInt();

      if ( sensorNumber > numberOfFoundSensors )
      {
        return request->send( 400, HEADER_HTML, "Invalid sensornumber" );
      }
      snprintf( sensor[sensorNumber].name, sizeof( sensor->name ), "%s", request->arg( "sensorname" ).c_str() );

