diff --git a/README.md b/README.md index 22aa5c793..41214b5da 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ running: ``` sudo mkdir -p /mnt/nginx/ && sudo nginx -c `pwd`/nginx.conf -STACK=prod gunicorn -c gunicorn_config.py +STACK=prod gunicorn -c gunicorn_config.py application:application ``` start the workers: diff --git a/endpoints/index.py b/endpoints/index.py index 8ddf64b91..c8b519c7e 100644 --- a/endpoints/index.py +++ b/endpoints/index.py @@ -134,8 +134,8 @@ def create_repository(namespace, repository): repo = model.get_repository(namespace, repository) if not repo and get_authenticated_user() is None: - logger.debug('Attempt to create new repository with token auth.') - abort(400) + logger.debug('Attempt to create new repository without user auth.') + abort(401) elif repo: permission = ModifyRepositoryPermission(namespace, repository)