From 59398dfb779fa8a3adc7ff96e3ae28aea1bfcda6 Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Thu, 27 Apr 2017 19:26:35 +0800 Subject: [PATCH] Fix the API Microversions's doc HTTPNotAcceptableAPIVersion has be defined in http_error, and the error code is 406. Change-Id: Ieedbef808daf56f7900bba6ce7e797457ca29307 --- doc/source/dev/api_microversion.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/dev/api_microversion.rst b/doc/source/dev/api_microversion.rst index a240ce8d91..c8146ba2f3 100644 --- a/doc/source/dev/api_microversion.rst +++ b/doc/source/dev/api_microversion.rst @@ -205,7 +205,7 @@ In the controller class:: This method would only be available if the caller had specified an ``OpenStack-API-Version`` of >= ``1.2``. If they had specified a lower version (or not specified it and received the default of ``1.1``) -the server would respond with ``HTTP/404``. +the server would respond with ``HTTP/406``. Removing an API method ~~~~~~~~~~~~~~~~~~~~~~ @@ -217,8 +217,9 @@ In the controller class:: .... This method would only be available if the caller had specified an +``OpenStack-API-Version`` of >= ``1.2`` and ``OpenStack-API-Version`` of <= ``1.3``. If ``1.4`` or later -is specified the server will respond with ``HTTP/404``. +is specified the server will respond with ``HTTP/406``. Changing a method's behavior ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~