Strategies To Return Headers and Errors
Return the HTTP status code of a single backend
When you have one backend only and use an encoding different than no-op, you can choose to return the original HTTP status code to the client.
The gateway obfuscates the HTTP status codes of the backend by default for many reasons, including security and consistency. Still, if you prefer using the HTTP status code of the backend instead, you can enable the return_error_code flag.
The body of the error will be empty unless you complement it with the return_error_msg at the router configuration
Step 1: Click on service settings below you can see router click on checkbox return error message
