@classmethod
def api_step(cls, deposition):
    """Workflow was halted during processing.

        The workflow task that halted processing is expected to provide a
        response to send back to the client.

        The default response code is 500 Internal Server Error. A workflow task
        is expected to use Deposition.set_render_context() with a dictionary
        which is returned to the client. Set the key 'status', to change the
        status code, e.g.::

            d.set_render_context(dict(status=400, message="Bad request"))

        If no response is provided by the workflow task, it is regarded as
        an internal server error.
        """
    ctx = deposition.get_render_context()
    if ctx:
        return ctx.get('response', {}), ctx.get('status', 500)
    return cls.api_error(deposition)
