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

   ### Description
   
   Description:
   
   When making an HTTP method request (e.g., PUT or GET) on a valid URL in 
APISIX, the server currently responds with a 404 Not Found if the method is not 
allowed on that endpoint. According to HTTP standards, the correct behavior 
should be to return a 405 Method Not Allowed status code to indicate that the 
resource exists but the HTTP method is unsupported.
   
   Currently, achieving this requires the paid exit-transformer plugin from 
API7 Enterprise edition, which allows response customization including status 
code rewrites. This plugin is not available in the open-source version of 
APISIX.
   
   Request:
   
   Consider adding native support or a community plugin for returning 405 for 
disallowed HTTP methods on valid routes.
   
   This would improve HTTP compliance and usability for APISIX users who use 
the open-source version.
   
   Any pointers or community interest in developing such a plugin would be 
appreciated.


-- 
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

Reply via email to