// Code generated by go-swagger; DO NOT EDIT.

package metadata

// 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-openapi/runtime"
)

// ListMembershipsOKCode is the HTTP code returned for type ListMembershipsOK
const ListMembershipsOKCode int = 200

/*
ListMembershipsOK ok

swagger:response listMembershipsOK
*/
type ListMembershipsOK struct {

	/*
	  In: Body
	*/
	Payload *ListMembershipsOKBody `json:"body,omitempty"`
}

// NewListMembershipsOK creates ListMembershipsOK with default headers values
func NewListMembershipsOK() *ListMembershipsOK {

	return &ListMembershipsOK{}
}

// WithPayload adds the payload to the list memberships o k response
func (o *ListMembershipsOK) WithPayload(payload *ListMembershipsOKBody) *ListMembershipsOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the list memberships o k response
func (o *ListMembershipsOK) SetPayload(payload *ListMembershipsOKBody) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *ListMembershipsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err) // let the recovery middleware deal with this
		}
	}
}

// ListMembershipsInternalServerErrorCode is the HTTP code returned for type ListMembershipsInternalServerError
const ListMembershipsInternalServerErrorCode int = 500

/*
ListMembershipsInternalServerError internal server error

swagger:response listMembershipsInternalServerError
*/
type ListMembershipsInternalServerError struct {
}

// NewListMembershipsInternalServerError creates ListMembershipsInternalServerError with default headers values
func NewListMembershipsInternalServerError() *ListMembershipsInternalServerError {

	return &ListMembershipsInternalServerError{}
}

// WriteResponse to the client
func (o *ListMembershipsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses

	rw.WriteHeader(500)
}
