/
update_pet_responses.go
84 lines (56 loc) · 2.2 KB
/
update_pet_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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// 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"
)
// UpdatePetBadRequestCode is the HTTP code returned for type UpdatePetBadRequest
const UpdatePetBadRequestCode int = 400
/*UpdatePetBadRequest Invalid ID supplied
swagger:response updatePetBadRequest
*/
type UpdatePetBadRequest struct {
}
// NewUpdatePetBadRequest creates UpdatePetBadRequest with default headers values
func NewUpdatePetBadRequest() *UpdatePetBadRequest {
return &UpdatePetBadRequest{}
}
// WriteResponse to the client
func (o *UpdatePetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(400)
}
// UpdatePetNotFoundCode is the HTTP code returned for type UpdatePetNotFound
const UpdatePetNotFoundCode int = 404
/*UpdatePetNotFound Pet not found
swagger:response updatePetNotFound
*/
type UpdatePetNotFound struct {
}
// NewUpdatePetNotFound creates UpdatePetNotFound with default headers values
func NewUpdatePetNotFound() *UpdatePetNotFound {
return &UpdatePetNotFound{}
}
// WriteResponse to the client
func (o *UpdatePetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(404)
}
// UpdatePetMethodNotAllowedCode is the HTTP code returned for type UpdatePetMethodNotAllowed
const UpdatePetMethodNotAllowedCode int = 405
/*UpdatePetMethodNotAllowed Validation exception
swagger:response updatePetMethodNotAllowed
*/
type UpdatePetMethodNotAllowed struct {
}
// NewUpdatePetMethodNotAllowed creates UpdatePetMethodNotAllowed with default headers values
func NewUpdatePetMethodNotAllowed() *UpdatePetMethodNotAllowed {
return &UpdatePetMethodNotAllowed{}
}
// WriteResponse to the client
func (o *UpdatePetMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(405)
}