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