There is keystone/exception.py which contains Exceptions defined and used
inside keystone provide 4xx and 5xx status code. And we can use it like:
    exception.Forbidden.code, exception.forbiddent.title
    exception.NotFound.code, exception.NotFound.title

This makes the code looks pretty and avoid error prone. But I can't find
definition for other status code, like 200, 201, 204, 302, and so on. The
code in keystone, especially the unit test cases,  just write these status
code and title explicitly.

How about add those definitions?
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to