func NewUpdateFamilyInternalServerError() *UpdateFamilyInternalServerError {
	return &UpdateFamilyInternalServerError{}
}
NewUpdateFamilyInternalServerError creates a UpdateFamilyInternalServerError with default headers values
package families
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/fugue/fugue-client/models"
)
type UpdateFamilyReader struct {
	formats strfmt.Registry
}
func (o *UpdateFamilyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewUpdateFamilyOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewUpdateFamilyBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewUpdateFamilyUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewUpdateFamilyForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewUpdateFamilyNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewUpdateFamilyInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("unknown error", response, response.Code())
	}
}
func NewUpdateFamilyOK() *UpdateFamilyOK {
	return &UpdateFamilyOK{}
}
type UpdateFamilyOK struct {
	Payload *models.FamilyWithRules
}
func (o *UpdateFamilyOK) Error() string {
	return fmt.Sprintf("[PATCH /families/{family_id}][%d] updateFamilyOK  %+v", 200, o.Payload)
}
func (o *UpdateFamilyOK) GetPayload() *models.FamilyWithRules {
	return o.Payload
}
func (o *UpdateFamilyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.FamilyWithRules)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateFamilyBadRequest() *UpdateFamilyBadRequest {
	return &UpdateFamilyBadRequest{}
}
type UpdateFamilyBadRequest struct {
	Payload *models.BadRequestError
}
func (o *UpdateFamilyBadRequest) Error() string {
	return fmt.Sprintf("[PATCH /families/{family_id}][%d] updateFamilyBadRequest  %+v", 400, o.Payload)
}
func (o *UpdateFamilyBadRequest) GetPayload() *models.BadRequestError {
	return o.Payload
}
func (o *UpdateFamilyBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.BadRequestError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateFamilyUnauthorized() *UpdateFamilyUnauthorized {
	return &UpdateFamilyUnauthorized{}
}
type UpdateFamilyUnauthorized struct {
	Payload *models.AuthenticationError
}
func (o *UpdateFamilyUnauthorized) Error() string {
	return fmt.Sprintf("[PATCH /families/{family_id}][%d] updateFamilyUnauthorized  %+v", 401, o.Payload)
}
func (o *UpdateFamilyUnauthorized) GetPayload() *models.AuthenticationError {
	return o.Payload
}
func (o *UpdateFamilyUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuthenticationError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateFamilyForbidden() *UpdateFamilyForbidden {
	return &UpdateFamilyForbidden{}
}
type UpdateFamilyForbidden struct {
	Payload *models.AuthorizationError
}
func (o *UpdateFamilyForbidden) Error() string {
	return fmt.Sprintf("[PATCH /families/{family_id}][%d] updateFamilyForbidden  %+v", 403, o.Payload)
}
func (o *UpdateFamilyForbidden) GetPayload() *models.AuthorizationError {
	return o.Payload
}
func (o *UpdateFamilyForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.AuthorizationError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUpdateFamilyNotFound() *UpdateFamilyNotFound {
	return &UpdateFamilyNotFound{}
}
type UpdateFamilyNotFound struct {
	Payload *models.NotFoundError
}
func (o *UpdateFamilyNotFound) Error() string {
	return fmt.Sprintf("[PATCH /families/{family_id}][%d] updateFamilyNotFound  %+v", 404, o.Payload)
}
func (o *UpdateFamilyNotFound) GetPayload() *models.NotFoundError {
	return o.Payload
}
func (o *UpdateFamilyNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.NotFoundError)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}