problem in esp8266-01 with arduino uno-control led

i have problem with esp8266-01 and arduino uno when i control LEDs with ip address, i controlled 3 LEDs
code work good, when i add LED number 4 esp8266-01 stay blink and the process does not end.

this with 3 LEDs

and this when i add LED number 4

#include "WiFiEsp.h"
// Emulate Serial1 on pins 6/7 if not present
#ifndef HAVE_HWSERIAL1
#include "SoftwareSerial.h"
SoftwareSerial Serial1(6, 7); // RX, TX
#endif

char ssid[] = "**";            // your network SSID (name)
char pass[] = "****";        // your network password
int status = WL_IDLE_STATUS;

int Chambre1_LED = 2;                                                
int Chambre2_LED = 3;
int Salon_LED = 4; 
int Chambre3_LED = 5;

WiFiEspServer server(80);

// use a ring buffer to increase speed and reduce memory allocation
RingBuffer buf(512);

void setup()
{
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(8, OUTPUT);
  Serial.begin(115200);   // initialize serial for debugging
  Serial1.begin(9600);    // initialize serial for ESP module
  WiFi.init(&Serial1);    // initialize ESP module

  // check for the presence of the shield
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue
    while (true);
  }

  // attempt to connect to WiFi network
  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network
    status = WiFi.begin(ssid, pass);
  }

  Serial.println("You're connected to the network");
  printWifiStatus();
  
  // start the web server on port 80
  server.begin();
}

//------------------------------------------------------------------------------------------------
void loop()
{
 leds();
}
//------------------------------------------------------------------------------------------------

void leds ()
{
  WiFiEspClient client = server.available();  // listen for incoming clients

  if (client) {                               // if you get a client,
    Serial.println("New client");             // print a message out the serial port
    buf.init();                               // initialize the circular buffer
    while (client.connected()) {              // loop while the client's connected
      if (client.available()) {               // if there's bytes to read from the client,
        char c = client.read();               // read a byte, then
        buf.push(c);                          // push it to the ring buffer

        // printing the stream to the serial monitor will slow down
        // the receiving of data from the ESP filling the serial buffer
        //Serial.write(c);
        
        // you got two newline characters in a row
        // that's the end of the HTTP request, so send a response
        if (buf.endsWith("\r\n\r\n")) {
          sendHttpResponse(client);
          break;
        }
          salon();
          chamb1();
          chamb2();
          chamb3();
      }
    }
    // close the connection
    client.stop();
    Serial.println("Client disconnected");
  }
}
//--------------------------------------------------------------------------------------------------

void chamb1()
{
        // Check to see if the client request was "GET /H" or "GET /L":
        if (buf.endsWith("GET /O1")) {
          Serial.println("Turn led ON");
        
          digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
        }
        else if (buf.endsWith("GET /F1")) {
          Serial.println("Turn led OFF");
          
          digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
        }
}
//------------------------------------------------------
void chamb2()
{
        // Check to see if the client request was "GET /H" or "GET /L":
        if (buf.endsWith("GET /O2")) {
          Serial.println("Turn led ON");
         
          digitalWrite(3, HIGH);   // turn the LED on (HIGH is the voltage level)
        }
        else if (buf.endsWith("GET /F2")) {
          Serial.println("Turn led OFF");
     
          digitalWrite(3, LOW);    // turn the LED off by making the voltage LOW
        }
}
//--------------------------------------------------
void salon()
{
   
        if (buf.endsWith("GET /O3")) {
          Serial.println("Turn led ON");
         
          digitalWrite(4, HIGH);   // turn the LED on (HIGH is the voltage level)
        }
        else if (buf.endsWith("GET /F3")) {
          Serial.println("Turn led OFF");
         
          digitalWrite(4, LOW);    // turn the LED off by making the voltage LOW
        }
}
//----------------------------------------------------------------
void chamb3()
{
   
        // Check to see if the client request was "GET /H" or "GET /L":
        if (buf.endsWith("GET /O4")) {
          Serial.println("Turn led ON");
        
          digitalWrite(5, HIGH);   // turn the LED on (HIGH is the voltage level)
        }
        else if (buf.endsWith("GET /F4")) {
          Serial.println("Turn led OFF");
        
          digitalWrite(5, LOW);    // turn the LED off by making the voltage LOW
        }
}
//-------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------
void sendHttpResponse(WiFiEspClient client)
{
  // HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK)
  // and a content-type so the client knows what's coming, then a blank line:
  client.println("HTTP/1.1 200 OK");
  client.println("Content-type:text/html");
  client.println();
  
  // the content of the HTTP response follows the header:
  client.print("The LED is ");
  client.print(5);
  client.println("
");
  client.println("
");
  
  /*client.println("Click <a href=\"/H\">here</a> turn the LED on
");
  client.println("Click <a href=\"/L\">here</a> turn the LED off
");*/
  
  // The HTTP response ends with another blank line:
  client.println();
}
//--------------------------------------------------------------------------------------------------
void printWifiStatus()
{
  // print the SSID of the network you're attached to
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  // print your WiFi shield's IP address
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);

  // print where to go in the browser
  Serial.println();
  Serial.print("To see this page in action, open a browser to http://");
  Serial.println(ip);
  Serial.println();
}

help me

int Chambre1_LED = 2;                                                
int Chambre2_LED = 3;
int Salon_LED = 4;
int Chambre3_LED = 5;

Are you positive that you can use all 4 of these pins?

          digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)

You gave the pin a name. Why are you now not using the name?

        // Check to see if the client request was "GET /H" or "GET /L":
        if (buf.endsWith("GET /O2")) {

That is NOT what the code does.

You have WAY more code than you need. The requests that turn pins on all contain "GET /O" and those that turn pins off all contain "GET /F". The next character in each request could have been the pin to turn on or off.

Are you positive that you can use all 4 of these pins?
I don't no .

That is NOT what the code does.

You have WAY more code than you need. The requests that turn pins on all contain "GET /O" and those that turn pins off all contain "GET /F". The next character in each request could have been the pin to turn on or off.

i change this now but the problem is stay