Rationalise API error classes by getting of the render_opts method which