Hi,
This is what I use in my inverter. Use this as the sense section. When input is > 285V, SIGNAL OUT > appr. 4V
You can use a comparator to compare this against a 4V reference or you can use a microcontroller to do this.
Then you can drive a relay to switch the load off.