deprecate _render_error correctly