mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-11 18:02:14 +01:00
16 lines
468 B
Go
16 lines
468 B
Go
package http
|
|
|
|
import "fmt"
|
|
|
|
type notAuthorizedContentTypeError struct{}
|
|
|
|
func (e *notAuthorizedContentTypeError) Error() string {
|
|
return fmt.Sprintf("Accepted values for 'Content-Type': %s, %s, %s, %s", PDFContentType, HTMLContentType, OctetStreamContentType, MultipartFormDataContentType)
|
|
}
|
|
|
|
type notAuthorizedFileContentTypeError struct{}
|
|
|
|
func (e *notAuthorizedFileContentTypeError) Error() string {
|
|
return fmt.Sprintf("Unable to detect a file 'Content-Type'")
|
|
}
|