 
     else if ( request->hasArg( "pwmdepth" ) )
     {
-      response = request->beginResponseStream( HEADER_HTML );
+      AsyncResponseStream *response = request->beginResponseStream( HEADER_HTML );
       response->printf( "%i", ledcNumberOfBits );
       return request->send( response );
     }
 
     else if ( request->hasArg( "pwmfrequency" ) )
     {
-      response = request->beginResponseStream( HEADER_HTML );
+      AsyncResponseStream *response = request->beginResponseStream( HEADER_HTML );
       response->printf( "%.0f", ledcActualFrequency );
       return request->send( response );
     }

      tft.setRotation( tftOrientation );
      tftClearScreen = true;
      preferences.putString( "tftorientation", ( tftOrientation == TFT_ORIENTATION_NORMAL ) ? "normal" : "upsidedown" );
      response = request->beginResponseStream( HEADER_HTML );
      response->printf( "%s", preferences.getString( "tftorientation", "" ).c_str() );
      return request->send( response );
    }

      {
        return request->send( 404 );
      }
      AsyncResponseStream *response = request->beginResponseStream( HEADER_HTML );
      while ( file )
      {
        if ( !file.isDirectory() )
