mirror of
https://github.com/openziti/ziti.git
synced 2026-09-10 08:45:41 +00:00
14 lines
392 B
Go
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),
|
|
}
|
|
}
|