Then you have *absolutely* no way to return a *proper* 405 response, because outside of the router you cannot know that this was the reason, thus you are violating the HTTP protocol.