title: How to return only a status code without a body with connexion framework mock
body: <p>I try to use <a href="https://github.com/zalando/connexion" rel="nofollow noreferrer">Connexion</a> as an API first framework the generates a Mock from a Swagger File (attached at the end).
  Then I run Connexion with the <code>connexion run ./swagger/swagger.yaml --mock=all --debug</code> command.
  This works for the <code>get</code> and <code>post</code> method but fails for the <code>patch</code> method that should only return a <code>201</code>. For this cases Connexion returns the following: <code>&quot;No example response was defined.&quot;</code></p>
  <p>Is there a way to tell Connexion that no example body is needed in the Mock and only a http code should be returned?</p>
  <pre class="lang-yaml prettyprint-override"><code>swagger: '2.0'
  info:
    description: Manages the customer of a digital marketplace
    version: 1.0.0
    title: Customers
    contact:
      email: den.seidel@gmail.com
    license:
      name: Apache 2.0
      url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
  host: virtserver.swaggerhub.com
  basePath: /
  schemes:
    - https
  paths:
    /customers/{customer-id}/clients:
      post:
        summary: Adds a client to a customer identity.
        description: https://auth0.com/docs/api/management/v2#!/Clients/post_clients
        parameters:
          - in: path
            name: customer-id
            type: string
            description: The id of the customer.
            required: true
          - in: body
            name: client
            description: &quot;Client item data&quot;
            required: false
            schema:
              type: object
              required:
                - client_name
                - client_description
              properties:
                client_name:
                  type: string
                  example: &quot;Peffermiza Broker Frontend&quot;
                client_description:
                  type: string
                  example: &quot;This is the the frontend app for brokers.&quot;
                allowed_callback_urls:
                  type: array
                  items:
                    type: string
                    example: 'http://localhost:3000/callback'
                allowed_logout_urls:
                  type: array
                  items:
                    type: string
                    example: 'http://localhost:3000/logout'
        produces:
          - application/json
        responses:
          201:
            description: OK
            schema:
              $ref: '#/definitions/Client'
          400:
            description: &quot;invalid input, object invalid&quot;
          409:
            description: &quot;an existing item already exists&quot;
        security:
        - oauth2:
          - &quot;https://api.d10l.de/customers:write&quot;
      get:
        summary: Gets the clients of a customer identity.
        description: https://auth0.com/docs/api/management/v2#!/Clients/get_clients
        parameters:
          - in: path
            name: customer-id
            type: string
            description: The id of the customer.
            required: true
        produces:
          - application/json
        responses:
          200:
            description: A list of clients of the customer identity
            schema:
                type: object
                properties:
                  clients:
                    type: array
                    items:
                      $ref: '#/definitions/Client'
                example:
                  clients:
                    - date_created: &quot;2016-08-29T09:12:33.001Z&quot;
                      allowed_logout_urls:
                        - &quot;http://localhost:3000/logout&quot;
                        - &quot;http://localhost:3000/logout&quot;
                      client_secret: &quot;94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G&quot;
                      allowed_callback_urls:
                        - &quot;http://localhost:3000/callback&quot;
                        - &quot;http://localhost:3000/callback&quot;
                      client_name: &quot;Peffermiza Broker Frontend&quot;
                      client_description: 'The new broker application for the south region.'
                      client_id: &quot;94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G&quot;
                    - date_created: &quot;2016-08-29T09:12:33.001Z&quot;
                      allowed_logout_urls:
                        - &quot;http://localhost:3000/logout&quot;
                        - &quot;http://localhost:3000/logout&quot;
                      client_secret: &quot;94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G&quot;
                      allowed_callback_urls:
                        - &quot;http://localhost:3000/callback&quot;
                        - &quot;http://localhost:3000/callback&quot;
                      client_name: &quot;The new broker application for the south region.&quot;
                      client_description: 
                      client_id: &quot;94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G&quot;
          400:
            description: &quot;bad input parameter&quot;
        security:
        - oauth2:
          - &quot;https://api.d10l.de/customers:read&quot;
    /customers/{customer-id}/clients/{client-id}:
      patch:
        summary: Update the client of a customer
        description: https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id
        parameters: 
          - in: path
            name: customer-id
            type: string
            description: The id of the customer.
            required: true
          - in: path
            name: client-id
            type: string
            description: The id of the customer.
            required: true
          - in: body
            name: client
            schema:
              $ref: '#/definitions/Client'
        responses:
          200:
            description: OK
        security: 
          - oauth2: 
            - &quot;https://api.d10l.de/customers:write&quot;
  securityDefinitions:
    oauth2:
      type: oauth2
      authorizationUrl: 'https://d10l.eu.auth0.com/authorize'
      tokenUrl: 'https://d10l.eu.auth0.com/oauth/token'
      flow: accessCode
      scopes:
        'https://api.d10l.de/customers:write': Access right needed to write to the customers service.
        'https://api.d10l.de/customers:read': Access right needed to read from the customers service.
  definitions:
    Client:
      type: object
      required:
        - client_id
        - client_name
        - client_description
        - date_created  
        - client_secret
        - allowed_callback_urls
        - allowed_logout_urls
      properties:
        client_id:
          type: string
          example: 94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G
        client_name:
          type: string
          example: 'Peffermiza Broker Frontend'
        client_description:
          type: string
          example: 'The new broker application for the south region.' 
        date_created:
          type: string
          format: int32
          example: '2016-08-29T09:12:33.001Z'
        client_secret:
          type: string
          example: 94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G
        allowed_callback_urls: 
          type: array
          items:
            type: string
            example: 'http://localhost:3000/callback'
        allowed_logout_urls:
          type: array
          items:
            type: string
            example: 'http://localhost:3000/logout'
      example:
        date_created: &quot;2016-08-29T09:12:33.001Z&quot;
        allowed_logout_urls:
        - &quot;http://localhost:3000/logout&quot;
        - &quot;http://localhost:3000/logout&quot;
        client_secret: &quot;94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G&quot;
        allowed_callback_urls:
        - &quot;http://localhost:3000/callback&quot;
        - &quot;http://localhost:3000/callback&quot;
        client_name: &quot;Peffermiza Broker Frontend&quot;
        client_description: &quot;The new broker backend for the south region.&quot;
        client_id: &quot;94YJaDlR5QDpaS7Em6aC02_gj6kA1Q_G&quot;
  </code></pre>