Add models
[ric-plt/xapp-frame.git] / pkg / restapi / operations / common / unsubscribe_responses.go
1 // Code generated by go-swagger; DO NOT EDIT.
2
3 package common
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 // UnsubscribeNoContentCode is the HTTP code returned for type UnsubscribeNoContent
15 const UnsubscribeNoContentCode int = 204
16
17 /*UnsubscribeNoContent Operation done successfully
18
19 swagger:response unsubscribeNoContent
20 */
21 type UnsubscribeNoContent struct {
22 }
23
24 // NewUnsubscribeNoContent creates UnsubscribeNoContent with default headers values
25 func NewUnsubscribeNoContent() *UnsubscribeNoContent {
26
27         return &UnsubscribeNoContent{}
28 }
29
30 // WriteResponse to the client
31 func (o *UnsubscribeNoContent) 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 // UnsubscribeBadRequestCode is the HTTP code returned for type UnsubscribeBadRequest
39 const UnsubscribeBadRequestCode int = 400
40
41 /*UnsubscribeBadRequest Invalid requestorId supplied
42
43 swagger:response unsubscribeBadRequest
44 */
45 type UnsubscribeBadRequest struct {
46 }
47
48 // NewUnsubscribeBadRequest creates UnsubscribeBadRequest with default headers values
49 func NewUnsubscribeBadRequest() *UnsubscribeBadRequest {
50
51         return &UnsubscribeBadRequest{}
52 }
53
54 // WriteResponse to the client
55 func (o *UnsubscribeBadRequest) 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 // UnsubscribeInternalServerErrorCode is the HTTP code returned for type UnsubscribeInternalServerError
63 const UnsubscribeInternalServerErrorCode int = 500
64
65 /*UnsubscribeInternalServerError Internal error
66
67 swagger:response unsubscribeInternalServerError
68 */
69 type UnsubscribeInternalServerError struct {
70 }
71
72 // NewUnsubscribeInternalServerError creates UnsubscribeInternalServerError with default headers values
73 func NewUnsubscribeInternalServerError() *UnsubscribeInternalServerError {
74
75         return &UnsubscribeInternalServerError{}
76 }
77
78 // WriteResponse to the client
79 func (o *UnsubscribeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
80
81         rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
82
83         rw.WriteHeader(500)
84 }