liujiong 8bef6b47a5 Change SecretAcceptNotSupportedException from exception.BarbicanException to exception.BarbicanHTTPException
When retrieving secret's payload without providing payload_content_type,
if the payload_content_type is not default as "text/plain", we get 500 error.
Since this is generated by invalid input, we should mark this as 406 error.

Closes-bug: #1590097
Change-Id: I9ca94b7c66995991a9b0df37a46bd082e9795b74
2016-06-14 14:32:27 +08:00
..