Is there a way to override the rest result when registering a REST
interface? I would like to only show the stack trace when the user has
certain rights, but any time any exception is thrown from a REST
interface, the REST subsystem puts out a message with a short
"statusMessage" and a trace in "statusDebugMessage".

-Steve