func (o *GetPeerSectionsDefault) WithStatusCode(code int) *GetPeerSectionsDefault {
	o._statusCode = code
	return o
}
WithStatusCode adds the status to the get peer sections default response
package peer
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetPeerSectionsOKCode int = 200
type GetPeerSectionsOK struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *GetPeerSectionsOKBody `json:"body,omitempty"`
}
func NewGetPeerSectionsOK() *GetPeerSectionsOK {
	return &GetPeerSectionsOK{}
}
func (o *GetPeerSectionsOK) WithConfigurationVersion(configurationVersion string) *GetPeerSectionsOK {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *GetPeerSectionsOK) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *GetPeerSectionsOK) WithPayload(payload *GetPeerSectionsOKBody) *GetPeerSectionsOK {
	o.Payload = payload
	return o
}
func (o *GetPeerSectionsOK) SetPayload(payload *GetPeerSectionsOKBody) {
	o.Payload = payload
}
func (o *GetPeerSectionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type GetPeerSectionsDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetPeerSectionsDefault(code int) *GetPeerSectionsDefault {
	if code <= 0 {
		code = 500
	}
	return &GetPeerSectionsDefault{
		_statusCode: code,
	}
}