I would like to use custom HTTP errors in XenForo, I was wondering if someone could help post some simple guidelines how to do this?
For example, I want to have something like: http://xenforo.com/community/401 - Returns a template message "Not Authorized" http://xenforo.com/community/404 - Returns a template message "Page Not Found"... etc.
What plan to do is edit the Resources code, instead of creating a separate add-on.
I will extend the related function in Listener/Proxy/SomeAction.php and edit the Listener/Proxy.php to call it, like I did in this thread.
I'm looking at XenForo code into getNotFoundResponse() but I cannot figure how I could trigger a setHttpResponseCode(401). I guess I have to extend the Controller.php and add a new function there, but how do I trigger it? I don't see anywhere called actionErrorNotFound().