You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "1450793561 (via GitHub)" <gi...@apache.org> on 2025/08/21 02:57:33 UTC

[I] help request: Return fixed content based on the 500 status code [apisix]

1450793561 opened a new issue, #12541:
URL: https://github.com/apache/apisix/issues/12541

   ### Description
   
   Recently, we have a requirement: after matching the /bac/* route, if the status code is 500, a fixed content should be returned; for other status codes, the request should be forwarded to the backend upstream service normally.
   
   
   How to write the route configuration in JSON format?
   
   
   
   ### Environment
   
   apisixi version 3.91


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Return fixed content based on the 500 status code [apisix]

Posted by "SkyeYoung (via GitHub)" <gi...@apache.org>.
SkyeYoung commented on issue #12541:
URL: https://github.com/apache/apisix/issues/12541#issuecomment-3212649071

   @1450793561 If you are still encountering problems, please open the issue again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Return fixed content based on the 500 status code [apisix]

Posted by "SkyeYoung (via GitHub)" <gi...@apache.org>.
SkyeYoung closed issue #12541: help request: Return fixed content based on the 500 status code
URL: https://github.com/apache/apisix/issues/12541


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Return fixed content based on the 500 status code [apisix]

Posted by "SkyeYoung (via GitHub)" <gi...@apache.org>.
SkyeYoung commented on issue #12541:
URL: https://github.com/apache/apisix/issues/12541#issuecomment-3209158756

   @1450793561 Hi, u can ref https://apisix.apache.org/docs/apisix/plugins/response-rewrite/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org