Passing requests to other backend server on 5xx http response code

Hello.
Is there anything similiar in haproxy configuration like proxy_next_upstream http_500 in nginx. I want to send request to the next server if haproxy gets 5xx from first one. I know about using option httpchk but healthcheck endpoint is serving http 200 all the time so i am specificly asking for real users requests.

Thank you and have a great day :slight_smile: