Merge "Change to add response status codes for Cinder"
This commit is contained in:
commit
586f213f32
2
pom.xml
2
pom.xml
@ -39,7 +39,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.rackspace.cloud.api</groupId>
|
<groupId>com.rackspace.cloud.api</groupId>
|
||||||
<artifactId>clouddocs-maven-plugin</artifactId>
|
<artifactId>clouddocs-maven-plugin</artifactId>
|
||||||
<version>2.0.2</version>
|
<version>2.0.4</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
@ -68,12 +68,23 @@ format="SVG" scale="60"/>
|
|||||||
<revhistory xmlns:svg="http://www.w3.org/2000/svg"
|
<revhistory xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
xmlns:m="http://www.w3.org/1998/Math/MathML"
|
xmlns:m="http://www.w3.org/1998/Math/MathML"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
|
<revision>
|
||||||
|
<date>2014-06-17</date>
|
||||||
|
<revdescription>
|
||||||
|
<itemizedlist spacing="compact">
|
||||||
|
<listitem>
|
||||||
|
<para>Added common response status codes returned by
|
||||||
|
Block Storage.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</revdescription>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<date>2013-02-18</date>
|
<date>2013-02-18</date>
|
||||||
<revdescription>
|
<revdescription>
|
||||||
<itemizedlist spacing="compact">
|
<itemizedlist spacing="compact">
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Updating v1 documentation; .</para>
|
<para>Updated v1 documentation.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</revdescription>
|
</revdescription>
|
||||||
@ -83,7 +94,7 @@ format="SVG" scale="60"/>
|
|||||||
<revdescription>
|
<revdescription>
|
||||||
<itemizedlist spacing="compact">
|
<itemizedlist spacing="compact">
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Edits to initial version; .</para>
|
<para>Edits to initial version.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</revdescription>
|
</revdescription>
|
||||||
@ -360,6 +371,7 @@ format="SVG" scale="60"/>
|
|||||||
</literallayout>
|
</literallayout>
|
||||||
</example>
|
</example>
|
||||||
</section>
|
</section>
|
||||||
|
<xi:include href="../v2/section_http_status_codes.xml"/>
|
||||||
<section xml:id="Limits-d1e1208">
|
<section xml:id="Limits-d1e1208">
|
||||||
<title>Limits</title>
|
<title>Limits</title>
|
||||||
<para>All accounts, by default, have a preconfigured set of
|
<para>All accounts, by default, have a preconfigured set of
|
||||||
@ -628,9 +640,7 @@ format="SVG" scale="60"/>
|
|||||||
Content-Type: application/xml
|
Content-Type: application/xml
|
||||||
Content-Length: 121
|
Content-Length: 121
|
||||||
Date: Mon, 28 Nov 2011 18:19:37 GMT</computeroutput></screen>
|
Date: Mon, 28 Nov 2011 18:19:37 GMT</computeroutput></screen>
|
||||||
<programlisting language="xml">
|
<programlisting language="xml"><xi:include href="samples/db-faults-instanceFault.xml" parse="text"/></programlisting>
|
||||||
<xi:include href="samples/db-faults-instanceFault.xml" parse="text"/>
|
|
||||||
</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
<example>
|
<example>
|
||||||
<title>Example fault: JSON response</title>
|
<title>Example fault: JSON response</title>
|
||||||
@ -638,9 +648,7 @@ Date: Mon, 28 Nov 2011 18:19:37 GMT</computeroutput></screen>
|
|||||||
Content-Length: 120
|
Content-Length: 120
|
||||||
Content-Type: application/json; charset=UTF-8
|
Content-Type: application/json; charset=UTF-8
|
||||||
Date: Tue, 29 Nov 2011 00:33:48 GMT</computeroutput></screen>
|
Date: Tue, 29 Nov 2011 00:33:48 GMT</computeroutput></screen>
|
||||||
<programlisting language="json">
|
<programlisting language="json"><xi:include href="samples/db-faults-instanceFault.json" parse="text"/></programlisting>
|
||||||
<xi:include href="samples/db-faults-instanceFault.json" parse="text"/>
|
|
||||||
</programlisting>
|
|
||||||
</example>
|
</example>
|
||||||
<para>The error code (<code>code</code>) is returned in the body
|
<para>The error code (<code>code</code>) is returned in the body
|
||||||
of the response for convenience. The <code>message</code>
|
of the response for convenience. The <code>message</code>
|
||||||
@ -656,7 +664,7 @@ Date: Tue, 29 Nov 2011 00:33:48 GMT</computeroutput></screen>
|
|||||||
of error.</para>
|
of error.</para>
|
||||||
<para><?rax-fo keep-with-next?>The following
|
<para><?rax-fo keep-with-next?>The following
|
||||||
<code>badRequest</code> examples show errors when the volume
|
<code>badRequest</code> examples show errors when the volume
|
||||||
size is not valie:</para>
|
size is not valid:</para>
|
||||||
<example>
|
<example>
|
||||||
<title>Example badRequest fault and volume size errors: XML
|
<title>Example badRequest fault and volume size errors: XML
|
||||||
request</title>
|
request</title>
|
||||||
@ -675,7 +683,7 @@ Content-Type: application/json; charset=UTF-8
|
|||||||
Date: Tue, 29 Nov 2011 00:33:48 GMT</computeroutput></screen>
|
Date: Tue, 29 Nov 2011 00:33:48 GMT</computeroutput></screen>
|
||||||
<programlisting language="json"><xi:include href="samples/db-faults-badRequest.json" parse="text"/></programlisting>
|
<programlisting language="json"><xi:include href="samples/db-faults-badRequest.json" parse="text"/></programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>The next two examples show <code>itemNotFound</code>
|
<para>The following examples show <code>itemNotFound</code>
|
||||||
errors:</para>
|
errors:</para>
|
||||||
<example>
|
<example>
|
||||||
<title>Example itemNotFound fault: XML response</title>
|
<title>Example itemNotFound fault: XML response</title>
|
||||||
|
@ -63,14 +63,25 @@ format="SVG" scale="60"/>
|
|||||||
Programming Interface (<abbrev>API</abbrev>).</para>
|
Programming Interface (<abbrev>API</abbrev>).</para>
|
||||||
</abstract>
|
</abstract>
|
||||||
<revhistory>
|
<revhistory>
|
||||||
|
<revision>
|
||||||
|
<date>2014-06-17</date>
|
||||||
|
<revdescription>
|
||||||
|
<itemizedlist spacing="compact">
|
||||||
|
<listitem>
|
||||||
|
<para>Added common response status codes returned by
|
||||||
|
Block Storage.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</revdescription>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<!-- ... continue addding more revisions here as you change this document using the markup shown below... -->
|
<!-- ... continue addding more revisions here as you change this document using the markup shown below... -->
|
||||||
<date>2014-05-01</date>
|
<date>2014-05-01</date>
|
||||||
<revdescription>
|
<revdescription>
|
||||||
<itemizedlist spacing="compact">
|
<itemizedlist spacing="compact">
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Add Block Storage extensions to the API operations
|
<para>Added Block Storage extensions to the API
|
||||||
chapter.</para>
|
operations chapter.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</revdescription>
|
</revdescription>
|
||||||
@ -400,7 +411,7 @@ Content-Length: 187
|
|||||||
Content-Type: application/xml
|
Content-Type: application/xml
|
||||||
X-Compute-Request-Id: req-8e0295cd-a283-46e4-96da-cae05cbfd1c7
|
X-Compute-Request-Id: req-8e0295cd-a283-46e4-96da-cae05cbfd1c7
|
||||||
|
|
||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version='1.0' encoding='UTF-7'?>
|
||||||
<volume_types>
|
<volume_types>
|
||||||
<volume_type id="1" name="SATA">
|
<volume_type id="1" name="SATA">
|
||||||
<extra_specs/>
|
<extra_specs/>
|
||||||
@ -411,6 +422,7 @@ X-Compute-Request-Id: req-8e0295cd-a283-46e4-96da-cae05cbfd1c7
|
|||||||
</volume_types></literallayout>
|
</volume_types></literallayout>
|
||||||
</example>
|
</example>
|
||||||
</section>
|
</section>
|
||||||
|
<xi:include href="section_http_status_codes.xml"/>
|
||||||
<section xml:id="Limits-d1e1208">
|
<section xml:id="Limits-d1e1208">
|
||||||
<title>Limits</title>
|
<title>Limits</title>
|
||||||
<para>All accounts, by default, have a preconfigured set of
|
<para>All accounts, by default, have a preconfigured set of
|
||||||
|
79
v2/section_http_status_codes.xml
Normal file
79
v2/section_http_status_codes.xml
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<section xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:m="http://www.w3.org/1998/Math/MathML"
|
||||||
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
|
xmlns:db="http://docbook.org/ns/docbook" version="5.0"
|
||||||
|
xml:id="Response_status_codes-d1e904">
|
||||||
|
<title>HTTP response status codes</title>
|
||||||
|
<para>When an error occurs, Block Storage returns an HTTP error
|
||||||
|
response code that denotes the type of error. Some errors
|
||||||
|
returns a response body, which returns additional information
|
||||||
|
about the error.</para>
|
||||||
|
<para>The following table describes the possible status
|
||||||
|
codes:</para>
|
||||||
|
<informaltable rules="all" width="100%">
|
||||||
|
<col width="20%"/>
|
||||||
|
<col width="40%"/>
|
||||||
|
<col width="40%"/>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Response status code</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Response body?</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>200</td>
|
||||||
|
<td>Generic successful response.</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>201</td>
|
||||||
|
<td>Entity created.</td>
|
||||||
|
<td>Yes. Expect a location header and a response
|
||||||
|
body.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>204</td>
|
||||||
|
<td>Successful response without body.</td>
|
||||||
|
<td>No</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>301</td>
|
||||||
|
<td>Redirection.</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>400</td>
|
||||||
|
<td>Invalid request (syntax, value, and so on).</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>401</td>
|
||||||
|
<td>Unauthenticated client.</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>403</td>
|
||||||
|
<td>Authenticated client unable to perform
|
||||||
|
action.</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>409</td>
|
||||||
|
<td>Action cannot be completed due to situation that
|
||||||
|
is possibly permanent.</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>415</td>
|
||||||
|
<td>Unsupported type.</td>
|
||||||
|
<td>Yes, with type details.</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</informaltable>
|
||||||
|
</section>
|
Loading…
x
Reference in New Issue
Block a user