allow for custom output, success and error from base api class which also is a restler errorClass