
<!ENTITY ndash "&#8211;">
<!ENTITY mdash "&#8212;">

<!ENTITY GET    '<command xmlns="http://docbook.org/ns/docbook">GET</command>'>
<!ENTITY PUT    '<command xmlns="http://docbook.org/ns/docbook">PUT</command>'>
<!ENTITY POST   '<command xmlns="http://docbook.org/ns/docbook">POST</command>'>
<!ENTITY DELETE '<command xmlns="http://docbook.org/ns/docbook">DELETE</command>'>

     <!--
         A collection of common faults, these are pretty much expected
         in every request.
     -->
     <!ENTITY commonFaults
           '
        <response status="400" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:badRequest"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="401" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:unauthorized"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="403" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:forbidden"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="405" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:badMethod"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="413" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:overLimit"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="422" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:unprocessableEntity"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="500" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:instanceFault"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="501" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:notImplemented"/>
            <representation mediaType="application/json"/>
        </response>
        <response status="503" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:serviceUnavailable"/>
            <representation mediaType="application/json"/>
        </response>
           '>
      <!--
          Faults on GET
      -->
     <!ENTITY getFaults
           '
        <response status="404" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:itemNotFound"/>
            <representation mediaType="application/json"/>
        </response>
           '>
      <!--
          Faults on POST/PUT
      -->
     <!ENTITY postPutFaults
           '
        <response status="415" xmlns="http://wadl.dev.java.net/2009/02">
            <representation mediaType="application/xml" element="dbaas:badMediaType"/>
            <representation mediaType="application/json"/>
        </response>
           '>
