Just do this:

    throw new InvalidOprationException("Unable to render a body for status code...