summaryrefslogtreecommitdiffstats
path: root/golang/gen/restapi/operations
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-10 17:10:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-10 17:10:19 -0700
commitc6422b49b8b946386ca1068ec6887bbf07a8b166 (patch)
treec6c082c0875edfbb0eeb7379813e01024fa74367 /golang/gen/restapi/operations
parent8827f2a643b5dee773869eccb5d839f636b2295d (diff)
downloadfatcat-c6422b49b8b946386ca1068ec6887bbf07a8b166.tar.gz
fatcat-c6422b49b8b946386ca1068ec6887bbf07a8b166.zip
404 example
Diffstat (limited to 'golang/gen/restapi/operations')
-rw-r--r--golang/gen/restapi/operations/get_creator_id_responses.go44
1 files changed, 44 insertions, 0 deletions
diff --git a/golang/gen/restapi/operations/get_creator_id_responses.go b/golang/gen/restapi/operations/get_creator_id_responses.go
index 4c1cee1b..58dcb687 100644
--- a/golang/gen/restapi/operations/get_creator_id_responses.go
+++ b/golang/gen/restapi/operations/get_creator_id_responses.go
@@ -57,6 +57,50 @@ func (o *GetCreatorIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.
}
}
+// GetCreatorIDNotFoundCode is the HTTP code returned for type GetCreatorIDNotFound
+const GetCreatorIDNotFoundCode int = 404
+
+/*GetCreatorIDNotFound no such creator
+
+swagger:response getCreatorIdNotFound
+*/
+type GetCreatorIDNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *models.Error `json:"body,omitempty"`
+}
+
+// NewGetCreatorIDNotFound creates GetCreatorIDNotFound with default headers values
+func NewGetCreatorIDNotFound() *GetCreatorIDNotFound {
+
+ return &GetCreatorIDNotFound{}
+}
+
+// WithPayload adds the payload to the get creator Id not found response
+func (o *GetCreatorIDNotFound) WithPayload(payload *models.Error) *GetCreatorIDNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get creator Id not found response
+func (o *GetCreatorIDNotFound) SetPayload(payload *models.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetCreatorIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
/*GetCreatorIDDefault generic error response
swagger:response getCreatorIdDefault