func (o *DeleteResolverDefault) SetStatusCode(code int) {
	o._statusCode = code
}
SetStatusCode sets the status to the delete resolver default response
package resolver
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const DeleteResolverAcceptedCode int = 202
type DeleteResolverAccepted struct {
	ReloadID string `json:"Reload-ID"`
}
func NewDeleteResolverAccepted() *DeleteResolverAccepted {
	return &DeleteResolverAccepted{}
}
func (o *DeleteResolverAccepted) WithReloadID(reloadID string) *DeleteResolverAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *DeleteResolverAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *DeleteResolverAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	reloadID := o.ReloadID
	if reloadID != "" {
		rw.Header().Set("Reload-ID", reloadID)
	}
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(202)
}
const DeleteResolverNoContentCode int = 204
type DeleteResolverNoContent struct {
}
func NewDeleteResolverNoContent() *DeleteResolverNoContent {
	return &DeleteResolverNoContent{}
}
func (o *DeleteResolverNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.Header().Del(runtime.HeaderContentType)  
	rw.WriteHeader(204)
}
const DeleteResolverNotFoundCode int = 404
type DeleteResolverNotFound struct {
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteResolverNotFound() *DeleteResolverNotFound {
	return &DeleteResolverNotFound{}
}
func (o *DeleteResolverNotFound) WithConfigurationVersion(configurationVersion string) *DeleteResolverNotFound {
	o.ConfigurationVersion = configurationVersion
	return o
}
func (o *DeleteResolverNotFound) SetConfigurationVersion(configurationVersion string) {
	o.ConfigurationVersion = configurationVersion
}
func (o *DeleteResolverNotFound) WithPayload(payload *models.Error) *DeleteResolverNotFound {
	o.Payload = payload
	return o
}
func (o *DeleteResolverNotFound) SetPayload(payload *models.Error) {
	o.Payload = payload
}
func (o *DeleteResolverNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	configurationVersion := o.ConfigurationVersion
	if configurationVersion != "" {
		rw.Header().Set("Configuration-Version", configurationVersion)
	}
	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
type DeleteResolverDefault struct {
	_statusCode int
	ConfigurationVersion string `json:"Configuration-Version"`
	Payload *models.Error `json:"body,omitempty"`
}
func NewDeleteResolverDefault(code int) *DeleteResolverDefault {
	if code <= 0 {
		code = 500
	}
	return &DeleteResolverDefault{
		_statusCode: code,
	}
}
func (o *DeleteResolverDefault) WithStatusCode(code int) *DeleteResolverDefault {
	o._statusCode = code
	return o
}