github.com/circl-dev/go-swagger@v0.31.0/examples/generated/restapi/operations/pet/update_pet_with_form_responses.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package pet
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"net/http"
    10  
    11  	"github.com/circl-dev/runtime"
    12  )
    13  
    14  // UpdatePetWithFormMethodNotAllowedCode is the HTTP code returned for type UpdatePetWithFormMethodNotAllowed
    15  const UpdatePetWithFormMethodNotAllowedCode int = 405
    16  
    17  /*UpdatePetWithFormMethodNotAllowed Invalid input
    18  
    19  swagger:response updatePetWithFormMethodNotAllowed
    20  */
    21  type UpdatePetWithFormMethodNotAllowed struct {
    22  }
    23  
    24  // NewUpdatePetWithFormMethodNotAllowed creates UpdatePetWithFormMethodNotAllowed with default headers values
    25  func NewUpdatePetWithFormMethodNotAllowed() *UpdatePetWithFormMethodNotAllowed {
    26  
    27  	return &UpdatePetWithFormMethodNotAllowed{}
    28  }
    29  
    30  // WriteResponse to the client
    31  func (o *UpdatePetWithFormMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
    32  
    33  	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
    34  
    35  	rw.WriteHeader(405)
    36  }