spacewander commented on a change in pull request #3672:
URL: https://github.com/apache/apisix/pull/3672#discussion_r582810276
##########
File path: apisix/upstream.lua
##########
@@ -191,7 +191,7 @@ function _M.set_by_route(route, api_ctx)
local new_nodes, err = dis.nodes(up_conf.service_name)
if not new_nodes then
- return http_code_upstream_unavailable, "no valid upstream node: "
.. (err or "nil")
+ return HTTP_CODE_UPSTREAM_UNAVAILABLE, "no valid upstream node: "
.. (err or "nil")
Review comment:
I think it is because the status code for this has been changed from 500
to 503. So the original contributor use a variable instead.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]