this is to match render_error method signature defined in Api::BaseController