def METHOD_NAME(  # pylint: disable=inconsistent-return-statements
    status_code, message, description, amqp_transport
):
    condition = message.application_properties.get(
        MGMT_RESPONSE_MESSAGE_ERROR_CONDITION
    )
    if status_code == 200:
        # TODO: will this always be body type ValueType?
        return message.value
    amqp_transport.handle_amqp_mgmt_error( # pylint: disable=protected-access
        _LOGGER, "Message lock renew failed.", condition, description, status_code
    )