func NewUploadAppImageInternalServerError() *UploadAppImageInternalServerError {
	return &UploadAppImageInternalServerError{}
}
NewUploadAppImageInternalServerError creates a UploadAppImageInternalServerError with default headers values
package application
import (
	"fmt"
	"io"
	"github.com/go-openapi/runtime"
	strfmt "github.com/go-openapi/strfmt"
	models "github.com/gotify/go-api-client/v2/models"
)
type UploadAppImageReader struct {
	formats strfmt.Registry
}
func (o *UploadAppImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewUploadAppImageOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewUploadAppImageBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 401:
		result := NewUploadAppImageUnauthorized()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 403:
		result := NewUploadAppImageForbidden()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 404:
		result := NewUploadAppImageNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewUploadAppImageInternalServerError()
		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 NewUploadAppImageOK() *UploadAppImageOK {
	return &UploadAppImageOK{}
}
type UploadAppImageOK struct {
	Payload *models.Application
}
func (o *UploadAppImageOK) Error() string {
	return fmt.Sprintf("[POST /application/{id}/image][%d] uploadAppImageOK  %+v", 200, o.Payload)
}
func (o *UploadAppImageOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(models.Application)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewUploadAppImageBadRequest() *UploadAppImageBadRequest {
	return &UploadAppImageBadRequest{}
}
type UploadAppImageBadRequest struct {
	Payload *models.Error
}
func (o *UploadAppImageBadRequest) Error() string {
	return fmt.Sprintf("[POST /application/{id}/image][%d] uploadAppImageBadRequest  %+v", 400, o.Payload)
}
func (o *UploadAppImageBadRequest) 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 NewUploadAppImageUnauthorized() *UploadAppImageUnauthorized {
	return &UploadAppImageUnauthorized{}
}
type UploadAppImageUnauthorized struct {
	Payload *models.Error
}
func (o *UploadAppImageUnauthorized) Error() string {
	return fmt.Sprintf("[POST /application/{id}/image][%d] uploadAppImageUnauthorized  %+v", 401, o.Payload)
}
func (o *UploadAppImageUnauthorized) 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 NewUploadAppImageForbidden() *UploadAppImageForbidden {
	return &UploadAppImageForbidden{}
}
type UploadAppImageForbidden struct {
	Payload *models.Error
}
func (o *UploadAppImageForbidden) Error() string {
	return fmt.Sprintf("[POST /application/{id}/image][%d] uploadAppImageForbidden  %+v", 403, o.Payload)
}
func (o *UploadAppImageForbidden) 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 NewUploadAppImageNotFound() *UploadAppImageNotFound {
	return &UploadAppImageNotFound{}
}
type UploadAppImageNotFound struct {
	Payload *models.Error
}
func (o *UploadAppImageNotFound) Error() string {
	return fmt.Sprintf("[POST /application/{id}/image][%d] uploadAppImageNotFound  %+v", 404, o.Payload)
}
func (o *UploadAppImageNotFound) 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
}