github.com/circl-dev/go-swagger@v0.31.0/examples/contributed-templates/stratoscale/restapi/operations/store/order_delete_responses.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package store 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 // OrderDeleteNoContentCode is the HTTP code returned for type OrderDeleteNoContent 15 const OrderDeleteNoContentCode int = 204 16 17 /*OrderDeleteNoContent Deleted successfully 18 19 swagger:response orderDeleteNoContent 20 */ 21 type OrderDeleteNoContent struct { 22 } 23 24 // NewOrderDeleteNoContent creates OrderDeleteNoContent with default headers values 25 func NewOrderDeleteNoContent() *OrderDeleteNoContent { 26 27 return &OrderDeleteNoContent{} 28 } 29 30 // WriteResponse to the client 31 func (o *OrderDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 32 33 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 34 35 rw.WriteHeader(204) 36 } 37 38 // OrderDeleteBadRequestCode is the HTTP code returned for type OrderDeleteBadRequest 39 const OrderDeleteBadRequestCode int = 400 40 41 /*OrderDeleteBadRequest Invalid ID supplied 42 43 swagger:response orderDeleteBadRequest 44 */ 45 type OrderDeleteBadRequest struct { 46 } 47 48 // NewOrderDeleteBadRequest creates OrderDeleteBadRequest with default headers values 49 func NewOrderDeleteBadRequest() *OrderDeleteBadRequest { 50 51 return &OrderDeleteBadRequest{} 52 } 53 54 // WriteResponse to the client 55 func (o *OrderDeleteBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 56 57 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 58 59 rw.WriteHeader(400) 60 } 61 62 // OrderDeleteNotFoundCode is the HTTP code returned for type OrderDeleteNotFound 63 const OrderDeleteNotFoundCode int = 404 64 65 /*OrderDeleteNotFound Order not found 66 67 swagger:response orderDeleteNotFound 68 */ 69 type OrderDeleteNotFound struct { 70 } 71 72 // NewOrderDeleteNotFound creates OrderDeleteNotFound with default headers values 73 func NewOrderDeleteNotFound() *OrderDeleteNotFound { 74 75 return &OrderDeleteNotFound{} 76 } 77 78 // WriteResponse to the client 79 func (o *OrderDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { 80 81 rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses 82 83 rw.WriteHeader(404) 84 }