How to Redirect on TR7 According to the Error Codes Returned from the Servers?
About
What is Redirect Based on Error Status Code?
For server error codes on TR7, clients can be directly redirected to a different domain or a different path within the related service. With this feature, when users encounter server errors, instead of seeing the error message, they are redirected to a different location.
Interface
Redirect Based on Error Status Code
Step > 1
Follow these steps: "Traffic Manager > Traffic Manipulation > Actions > Add". On the screen that opens, select "Redirect for Backend Service Errors" as the "Action Type".
Step > 2
In the "Error Codes" tab, the status code or codes returned in case of an error from the backend service can be selected. Based on the selected status code, the corresponding action will be triggered.
Step > 3
In the "Redirect Location" tab, the path or URL to which the redirection will occur is entered, and the action is added accordingly.
Control
Let's assume that "Error Codes" is set to 500.
It is displayed that a request is made to the IP:Port of the Backend Service and it responds with a status code of 500.
When a request is made to the vService via a browser, it can be seen that the redirection to the specified location in the action occurs.