forked from go-swagger/go-swagger
/
update_pet_responses.go
64 lines (46 loc) · 1.53 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
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-swagger/go-swagger/httpkit"
)
/*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 httpkit.Producer) {
rw.WriteHeader(400)
}
/*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 httpkit.Producer) {
rw.WriteHeader(404)
}
/*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 httpkit.Producer) {
rw.WriteHeader(405)
}