Fix HTTP response code for network APIs and improve error message

Bug #1258857 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Diane Fleming

Bug Description

https://review.openstack.org/54202
commit fa1857184db370ff78b9b7344be5f3a1030b862f
Author: Aaron Rosen <email address hidden>
Date: Mon Oct 28 15:25:42 2013 -0700

    Fix HTTP response code for network APIs and improve error message

    This patch corrects the http response codes for network resources to be
    consistant with other resources by returning a 400 instead of a 404
    if the desired resource is not found.

    This patch makes the following api changes:

    v2-api: NetworkNotFound now returns 400 instead of 404 and improved error
            message which network was not found instead of
            'The resource could not be found'.

    v3-api: PortNotFound and NetworkNotFound now returns a 400 instead of a 404.

    Closes-bug: #1245696
    DocImpact

    Change-Id: I66eb0c0ab926e0a8d1e2c9cfe1f7fd579ea3da21

Tom Fifield (fifieldt)
affects: openstack-manuals → openstack-api-site
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → icehouse
Tom Fifield (fifieldt)
tags: added: compute-v3 conmpute-api
removed: nova
tags: added: compute-api
removed: conmpute-api
Revision history for this message
Diane Fleming (diane-fleming) wrote :
Changed in openstack-api-site:
assignee: nobody → Diane Fleming (diane-fleming)
status: Confirmed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/92419
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=e442bb6fa73b74ec6519da3d1fd3ba927dd8af41
Submitter: Jenkins
Branch: master

commit e442bb6fa73b74ec6519da3d1fd3ba927dd8af41
Author: Diane Fleming <email address hidden>
Date: Tue May 6 10:47:49 2014 -0700

    Add "400 (NetworkNotFound)" error to put/post servers requests

    Closes-Bug: #1258857

    Change-Id: I5a593e5d89e7ddf25cea66dc33f76ece9d24397c
    author: diane fleming

Changed in openstack-api-site:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.