func (o *GetSpecificationDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the get specification default response
package specification
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const GetSpecificationOKCode int = 200
type GetSpecificationOK struct {
	Payload interface{} `json:"body,omitempty"`
}
func NewGetSpecificationOK() *GetSpecificationOK {
	return &GetSpecificationOK{}
}
func (o *GetSpecificationOK) WithPayload(payload interface{}) *GetSpecificationOK {
	o.Payload = payload
	return o
}
func (o *GetSpecificationOK) SetPayload(payload interface{}) {
	o.Payload = payload
}
func (o *GetSpecificationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	payload := o.Payload
	if err := producer.Produce(rw, payload); err != nil {
		panic(err)  
	}
}
type GetSpecificationDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewGetSpecificationDefault(code int) *GetSpecificationDefault {
	if code <= 0 {
		code = 500
	}
	return &GetSpecificationDefault{
		_statusCode: code,
	}
}
func (o *GetSpecificationDefault) WithStatusCode(code int) *GetSpecificationDefault {
	o._statusCode = code
	return o
}