func (o *PutCallbacksIDInternalServerErrorBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateType(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this put callbacks ID internal server error body
package callback
import (
	"encoding/json"
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/validate"
	strfmt "github.com/go-openapi/strfmt"
)
type PutCallbacksIDReader struct {
	formats strfmt.Registry
}
func (o *PutCallbacksIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 204:
		result := NewPutCallbacksIDNoContent()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPutCallbacksIDBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewPutCallbacksIDUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewPutCallbacksIDNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPutCallbacksIDInternalServerError()
		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 NewPutCallbacksIDNoContent() *PutCallbacksIDNoContent {
	return &PutCallbacksIDNoContent{}
}
type PutCallbacksIDNoContent struct {
}
func (o *PutCallbacksIDNoContent) Error() string {
	return fmt.Sprintf("[PUT /callbacks/{id}][%d] putCallbacksIdNoContent ", 204)
}
func (o *PutCallbacksIDNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPutCallbacksIDBadRequest() *PutCallbacksIDBadRequest {
	return &PutCallbacksIDBadRequest{}
}
type PutCallbacksIDBadRequest struct {
	Payload PutCallbacksIDBadRequestBody
}
func (o *PutCallbacksIDBadRequest) Error() string {
	return fmt.Sprintf("[PUT /callbacks/{id}][%d] putCallbacksIdBadRequest  %+v", 400, o.Payload)
}
func (o *PutCallbacksIDBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCallbacksIDUnauthorized() *PutCallbacksIDUnauthorized {
	return &PutCallbacksIDUnauthorized{}
}
type PutCallbacksIDUnauthorized struct {
	Payload PutCallbacksIDUnauthorizedBody
}
func (o *PutCallbacksIDUnauthorized) Error() string {
	return fmt.Sprintf("[PUT /callbacks/{id}][%d] putCallbacksIdUnauthorized  %+v", 401, o.Payload)
}
func (o *PutCallbacksIDUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCallbacksIDNotFound() *PutCallbacksIDNotFound {
	return &PutCallbacksIDNotFound{}
}
type PutCallbacksIDNotFound struct {
	Payload PutCallbacksIDNotFoundBody
}
func (o *PutCallbacksIDNotFound) Error() string {
	return fmt.Sprintf("[PUT /callbacks/{id}][%d] putCallbacksIdNotFound  %+v", 404, o.Payload)
}
func (o *PutCallbacksIDNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPutCallbacksIDInternalServerError() *PutCallbacksIDInternalServerError {
	return &PutCallbacksIDInternalServerError{}
}
type PutCallbacksIDInternalServerError struct {
	Payload PutCallbacksIDInternalServerErrorBody
}
func (o *PutCallbacksIDInternalServerError) Error() string {
	return fmt.Sprintf("[PUT /callbacks/{id}][%d] putCallbacksIdInternalServerError  %+v", 500, o.Payload)
}
func (o *PutCallbacksIDInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
type PutCallbacksIDBadRequestBody struct {
	Message []string `json:"message"`
	Type *string `json:"type"`
}
func (o *PutCallbacksIDBadRequestBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateMessage(formats); err != nil {
		res = append(res, err)
	}
	if err := o.validateType(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *PutCallbacksIDBadRequestBody) validateMessage(formats strfmt.Registry) error {
	if err := validate.Required("putCallbacksIdBadRequest"+"."+"message", "body", o.Message); err != nil {
		return err
	}
	return nil
}
var putCallbacksIdBadRequestBodyTypeTypePropEnum []interface{}
func init() {
	var res []string
	if err := json.Unmarshal([]byte(`["bad_request","unauthorized","not_found","method_not_allowed","internal","invalid_grant","unsupported_grant_type"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		putCallbacksIdBadRequestBodyTypeTypePropEnum = append(putCallbacksIdBadRequestBodyTypeTypePropEnum, v)
	}
}
const (
	PutCallbacksIDBadRequestBodyTypeBadRequest string = "bad_request"
	PutCallbacksIDBadRequestBodyTypeUnauthorized string = "unauthorized"
	PutCallbacksIDBadRequestBodyTypeNotFound string = "not_found"
	PutCallbacksIDBadRequestBodyTypeMethodNotAllowed string = "method_not_allowed"
	PutCallbacksIDBadRequestBodyTypeInternal string = "internal"
	PutCallbacksIDBadRequestBodyTypeInvalidGrant string = "invalid_grant"
	PutCallbacksIDBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
func (o *PutCallbacksIDBadRequestBody) validateTypeEnum(path, location string, value string) error {
	if err := validate.Enum(path, location, value, putCallbacksIdBadRequestBodyTypeTypePropEnum); err != nil {
		return err
	}
	return nil
}
func (o *PutCallbacksIDBadRequestBody) validateType(formats strfmt.Registry) error {
	if err := validate.Required("putCallbacksIdBadRequest"+"."+"type", "body", o.Type); err != nil {
		return err
	}
	if err := o.validateTypeEnum("putCallbacksIdBadRequest"+"."+"type", "body", *o.Type); err != nil {
		return err
	}
	return nil
}
type PutCallbacksIDInternalServerErrorBody struct {
	Message []string `json:"message"`
	Type *string `json:"type"`
}