func ErrorHandler(eh ErrorHandlerFunc) func(*Configuration) error {
	return func(c *Configuration) error {
		c.errorHandler = eh
		return nil
	}
}
// The ErrorHandler option registers the function responsible for handling
// the errors returned during token validation. When this option is not used then the
// middleware will use the default internal implementation validationErrorToHTTPStatus.
The ErrorHandler option registers the function responsible for handling
the errors returned during token validation. When this option is not used then the
middleware will use the default internal implementation validationErrorToHTTPStatus.
// The ErrorHandler option registers the function responsible for handling // the errors returned during token validation . When this option is not used then the // middleware will use the default internal implementation validationErrorToHTTPStatus .
func ErrorHandler(eh ErrorHandlerFunc) func(*Configuration) error {
	return func(c *Configuration) error {
		c.errorHandler = eh
		return nil
	}
}
func ErrorHandler ( eh ErrorHandlerFunc ) func ( * Configuration ) error { return func ( c * Configuration ) error { c . errorHandler = eh return nil } }
The ErrorHandler option registers the function responsible for handling
the errors returned during token validation.
The ErrorHandler option registers the function responsible for handling the errors returned during token validation .