mirror of
https://github.com/Xevion/banner.git
synced 2025-12-06 15:14:25 -06:00
14 lines
373 B
Go
14 lines
373 B
Go
package internal
|
|
|
|
import "fmt"
|
|
|
|
// UnexpectedContentTypeError is returned when the Content-Type header of a response does not match the expected value.
|
|
type UnexpectedContentTypeError struct {
|
|
Expected string
|
|
Actual string
|
|
}
|
|
|
|
func (e *UnexpectedContentTypeError) Error() string {
|
|
return fmt.Sprintf("Expected content type '%s', received '%s'", e.Expected, e.Actual)
|
|
}
|