func NewGetPluginConfigInternalServerError() *GetPluginConfigInternalServerError {
	return &GetPluginConfigInternalServerError{}
}
NewGetPluginConfigInternalServerError creates a GetPluginConfigInternalServerError with default headers values
package plugin
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/gotify/go-api-client/v2/models"
)
type GetPluginConfigReader struct {
	formats strfmt.Registry
}
func (o *GetPluginConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetPluginConfigOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetPluginConfigBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewGetPluginConfigUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewGetPluginConfigForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewGetPluginConfigNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetPluginConfigInternalServerError()
		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 NewGetPluginConfigOK() *GetPluginConfigOK {
	return &GetPluginConfigOK{}
}
type GetPluginConfigOK struct {
	Payload interface{}
}
func (o *GetPluginConfigOK) Error() string {
	return fmt.Sprintf("[GET /plugin/{id}/config][%d] getPluginConfigOK  %+v", 200, o.Payload)
}
func (o *GetPluginConfigOK) 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 NewGetPluginConfigBadRequest() *GetPluginConfigBadRequest {
	return &GetPluginConfigBadRequest{}
}
type GetPluginConfigBadRequest struct {
	Payload *models.Error
}
func (o *GetPluginConfigBadRequest) Error() string {
	return fmt.Sprintf("[GET /plugin/{id}/config][%d] getPluginConfigBadRequest  %+v", 400, o.Payload)
}
func (o *GetPluginConfigBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Error)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetPluginConfigUnauthorized() *GetPluginConfigUnauthorized {
	return &GetPluginConfigUnauthorized{}
}
type GetPluginConfigUnauthorized struct {
	Payload *models.Error
}
func (o *GetPluginConfigUnauthorized) Error() string {
	return fmt.Sprintf("[GET /plugin/{id}/config][%d] getPluginConfigUnauthorized  %+v", 401, o.Payload)
}
func (o *GetPluginConfigUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Error)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetPluginConfigForbidden() *GetPluginConfigForbidden {
	return &GetPluginConfigForbidden{}
}
type GetPluginConfigForbidden struct {
	Payload *models.Error
}
func (o *GetPluginConfigForbidden) Error() string {
	return fmt.Sprintf("[GET /plugin/{id}/config][%d] getPluginConfigForbidden  %+v", 403, o.Payload)
}
func (o *GetPluginConfigForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Error)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetPluginConfigNotFound() *GetPluginConfigNotFound {
	return &GetPluginConfigNotFound{}
}
type GetPluginConfigNotFound struct {
	Payload *models.Error
}
func (o *GetPluginConfigNotFound) Error() string {
	return fmt.Sprintf("[GET /plugin/{id}/config][%d] getPluginConfigNotFound  %+v", 404, o.Payload)
}
func (o *GetPluginConfigNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Error)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}