apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.48k stars 2.52k forks source link

help request: where to modify 502 error message #11198

Open githubxubin opened 6 months ago

githubxubin commented 6 months ago

Description

Can the error message template returned by apisix be modified? For example, can you customize the following? perhaps

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
<p><em>Powered by <a href="https://apisix.apache.org/">APISIX</a>.</em></p></body>
</html>

Or can this be modified?

<p><em>Powered by <a href="https://apisix.apache.org/">APISIX</a>.</em></p></body>

Environment

kayx23 commented 6 months ago

There is a plugin for this https://docs.api7.ai/hub/error-page

but AFAIK this is enterprise feature

githubxubin commented 6 months ago

There is a plugin for this https://docs.api7.ai/hub/error-page

but AFAIK this is enterprise feature

Instead of adding plug-ins, I want to modify the source code to define my own set of error message returns, which file is needed

githubxubin commented 6 months ago

There is a plugin for this https://docs.api7.ai/hub/error-page

but AFAIK this is enterprise feature

Can it be modified?