def METHOD_NAME(status):
    """Verifies that the given trial status is supported. Raises falcon.HTTPBadRequest otherwise"""
    if status and status not in Trial.allowed_stati:
        description = 'The "status" parameter is invalid. '
        description += "The value of the parameter must be one of {}".format(
            list(Trial.allowed_stati)
        )
        raise falcon.HTTPBadRequest(
            title=ERROR_INVALID_PARAMETER, description=description
        )