func NewGetGovParametersTallyingBadRequest() *GetGovParametersTallyingBadRequest {
	return &GetGovParametersTallyingBadRequest{}
}
NewGetGovParametersTallyingBadRequest creates a GetGovParametersTallyingBadRequest with default headers values
package governance
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
type GetGovParametersTallyingReader struct {
	formats strfmt.Registry
}
func (o *GetGovParametersTallyingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetGovParametersTallyingOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetGovParametersTallyingBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetGovParametersTallyingNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetGovParametersTallyingInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewGetGovParametersTallyingOK() *GetGovParametersTallyingOK {
	return &GetGovParametersTallyingOK{}
}
type GetGovParametersTallyingOK struct {
	Payload *GetGovParametersTallyingOKBody
}
func (o *GetGovParametersTallyingOK) Error() string {
	return fmt.Sprintf("[GET /gov/parameters/tallying][%d] getGovParametersTallyingOK  %+v", 200, o.Payload)
}
func (o *GetGovParametersTallyingOK) GetPayload() *GetGovParametersTallyingOKBody {
	return o.Payload
}
func (o *GetGovParametersTallyingOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetGovParametersTallyingOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}