just as above - don't render_error but throw an APIException