def METHOD_NAME(name: str) -> Response:
    with util.scoped_state_sync() as state_sync:
        environment = state_sync.METHOD_NAME(name)
    if environment is None:
        return _error(f"Environment '{name}' was not found", 404)
    return _success(environment)