Hi Sebastien,
there can be many different reasons to reject an incoming REST request. The identity of user or ACL permissions are common reasons, but on might want to detect missing or invalid body content. Request could then be filtered at reception to avoid passing it to internal or plugin resource and generating exceptions or malfunctions because of malformed body.
To be honest, I'm not a C++ developer, and LUA is a very simple, useful and flexible language to quickly code and test real-time functionalities without having to compile a plugin every time you make a change.
Regards,
Marc