mock_swift.py: Use status code 401 on nonexisting container, like the real Swift

bzr-import-20160707
Martin Pitt 9 years ago
parent b2af42ee8b
commit d395524307

@ -84,7 +84,7 @@ class SwiftHTTPRequestHandler(BaseHTTPRequestHandler):
try:
objs = set(['%s/result.tar' % r for r in self.results[container]])
except KeyError:
self.send_error(404, 'Container does not exist')
self.send_error(401, 'Container does not exist')
return
if 'prefix' in query:
p = query['prefix'][-1]

Loading…
Cancel
Save