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