federicotdn opened a new issue, #11402: URL: https://github.com/apache/apisix/issues/11402
### Description Hi, I am using APISIX 3.8.0 as an Ingress controller for Kubernetes. I have set up a gRPC route with a single plugin; a `serverless-pre-function` for the `rewrite` phase. If the endpoint were HTTP, I would be able to write: ```lua return 404, "Not found" ``` anywhere in the plugin function, and that would correctly return a 404. However gRPC has [its own set of status codes](https://grpc.github.io/grpc/core/md_doc_statuscodes.html); is it possible to set these via Lua? If I use the above code for the gRPC endpoint, then client side I just get `Unimplemented` code each time. Thanks! ### Environment - APISIX version (run `apisix version`): - Operating system (run `uname -a`): - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): - APISIX Dashboard version, if relevant: - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): -- 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-unsubscr...@apisix.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org