REST call to unavailable app returns 503 with error page html

We’ve configured custom error pages for our apps that work well, both in Mx 8.18 and 9.12. When I do a REST call to an app while it’s down, the response has status code 503 (which is fine), but the content has the full html source of the error page instead of the string “Service Unavailable”. Is this a bug or should I consider this a feature? Is there a setting I’m missing or is this result to be expected?
0 answers