Commit 26151fd1 authored by bradburyr's avatar bradburyr
Browse files

Improved specification of HTTP error responses (fifth batch).

parent 44d28cde
Loading
Loading
Loading
Loading
+22 −6
Original line number Diff line number Diff line
@@ -47,12 +47,28 @@ paths:
            schema:
              $ref: '#/components/schemas/ConsumptionReport'
      responses:
        '204':
          description: 'Consumption Report Accepted'
        '400':
          description: 'Bad Request'
        '415':
          description: 'Unsupported Media Type'
        '202': # Accepted: The request is well-formed but the message body has not yet been fully processed
          description: 'Metrics Report Accepted'
        '204': # No Content: The request is well-formed and the message body has been processed successfully
          description: 'Metrics Report Successful'
        '400': # Bad Request: The syntax of the HTTP request is malformed in a way not covered by one of the following more specific client errors
          $ref: 'TS29571_CommonData.yaml#/components/responses/400'
        '401': # Unauthorized
          $ref: 'TS29571_CommonData.yaml#/components/responses/401'
        '411': # Length Required
          $ref: 'TS29571_CommonData.yaml#/components/responses/411'
        '413': # Payload Too Large
          $ref: 'TS29571_CommonData.yaml#/components/responses/413'
        '414': # URI Too Long
          $ref: 'TS29571_CommonData.yaml#/components/responses/414'
        '415': # Unsupported Media Type
          $ref: 'TS29571_CommonData.yaml#/components/responses/415'
        '500': # Internal Server Error
          $ref: 'TS29571_CommonData.yaml#/components/responses/500'
        '503': # Service Unavailable
          $ref: 'TS29571_CommonData.yaml#/components/responses/503'
        default:
          $ref: 'TS29571_CommonData.yaml#/components/responses/default'

components:
  securitySchemes:
+21 −5
Original line number Diff line number Diff line
@@ -57,12 +57,28 @@ paths:
            schema:
              type: string
      responses:
        '204':
        '202': # Accepted: The request is well-formed but the message body has not yet been fully processed
          description: 'Metrics Report Accepted'
        '400':
          description: 'Bad Request'
        '415':
          description: 'Unsupported Media Type'
        '204': # No Content: The request is well-formed and the message body has been processed successfully
          description: 'Metrics Report Successful'
        '400': # Bad Request: The syntax of the HTTP request is malformed in a way not covered by one of the following more specific client errors
          $ref: 'TS29571_CommonData.yaml#/components/responses/400'
        '401': # Unauthorized
          $ref: 'TS29571_CommonData.yaml#/components/responses/401'
        '411': # Length Required
          $ref: 'TS29571_CommonData.yaml#/components/responses/411'
        '413': # Payload Too Large
          $ref: 'TS29571_CommonData.yaml#/components/responses/413'
        '414': # URI Too Long
          $ref: 'TS29571_CommonData.yaml#/components/responses/414'
        '415': # Unsupported Media Type
          $ref: 'TS29571_CommonData.yaml#/components/responses/415'
        '500': # Internal Server Error
          $ref: 'TS29571_CommonData.yaml#/components/responses/500'
        '503': # Service Unavailable
          $ref: 'TS29571_CommonData.yaml#/components/responses/503'
        default:
          $ref: 'TS29571_CommonData.yaml#/components/responses/default'

components:
  securitySchemes: