Return a 400 response when an invalid status is received

Registered by Ed Leafe

When listing servers, if the user passes an invalid status (such as 'EROR' instead of 'ERROR'), the API will return an empty list. Since statuses are limited and well-documented, passing an invalid status is a user error, and the response should be a 400 Bad Request.

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Medium
Drafter:
Ed Leafe
Direction:
Approved
Assignee:
Ed Leafe
Definition:
Approved
Series goal:
Accepted for newton
Implementation:
Implemented
Milestone target:
milestone icon newton-3
Started by
Matt Riedemann
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/response-for-invalid-status,n,z

Addressed by: https://review.openstack.org/336571
    Return 400 When Bad Status Values are Received

Gerrit topic: https://review.openstack.org/#q,topic:BUG-nova-list/1579706,n,z

Addressed by: https://review.openstack.org/315964
    Return HTTP 400 on list for invalid status

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.