HI Paul,
After further Testing i have found out the following.
Firstly, i replaced the Relay completely with an Velleman 5v 4 relay board.
I tested this with a digitalWrite(RELAY_4, HIGH); line in the Loop, this worked ok!
However, when i added an IF Statement like below, the code failed. resulting in the HTTP 404 error as mentioned earlier. after more testing i can confirm the issue seems to be related to the comparison using v_state.
I gate the same issue whether the relay board is connected or not.
if(v_state == "WAIT")//set beacon light based on status
{
digitalWrite(RELAY_4, LOW);
digitalWrite(RELAY_3, LOW);
digitalWrite(RELAY_2, HIGH);
digitalWrite(RELAY_1, LOW);
Serial.println("Relay 2 set.");
}