Comment 4 for bug 1494122

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/267902
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=93d9f0fe9f211ab8a63645ceca0fe4b9687929ed
Submitter: Jenkins
Branch: master

commit 93d9f0fe9f211ab8a63645ceca0fe4b9687929ed
Author: space <email address hidden>
Date: Fri Jan 15 10:51:51 2016 +0800

    Change 404 to 400 when resource not found exception raises

    According to the new document and Hong Bin's opinion,I changed
    code 404 to 400 of the classes as follows:
    ImageNotFound
    OSDistroFieldNotFound
    FlavorNotFound
    NetworkNotFound,
    because they are nonexistent resources.

    So these four exceptions will report code 400 in the future
    and we should pay attention to it.

    Change-Id: I4040340f9605e3ed03af2ec3b965bf2fc54a0d98
    Closes-Bug: #1494122