Files
ziti/controller/oidc_auth/errors.go
T
2024-02-29 09:27:56 -05:00

14 lines
392 B
Go

package oidc_auth
import (
"fmt"
"github.com/openziti/foundation/v2/errorz"
)
func newNotAcceptableError(acceptHeader string) *errorz.ApiError {
return &errorz.ApiError{
Code: "NOT_ACCEPTABLE",
Message: fmt.Sprintf("the request is not acceptable, the accept header did not have any supported options: %s (supported: %s, %s)", acceptHeader, JsonContentType, HtmlContentType),
}
}