don't render_error but raise a subclass of APIExecption