Backend observe layer7

HAPROXY 1.9

Good afternoon, I am using the following configuration in my group of backend servers

server server01 10.0.0.1:80 check on-error mark-down observe layer7 error-limit 5

Where I tell him to do a layer 7 check and where he returns 5 errors.
The question I ask is the following. In MS ARR where I’m wanting to go out I had the possibility of doing this but adding that the condition to mark the server as down is if it is fulfilled in a certain amount of time since the services of my backend usually return error 500 since they use exceptions to show errors, so I would only consider removing a server from the backend farm if a certain amount of error is met in a certain period of time.

And the other question is how does the server come back online? Does human intervention require?

Thank you so much.

regards