pub fn oauth_error(
code: OAuthErrorCode,
description: impl Into<String>,
redirect: Option<&str>,
state: Option<&str>,
) -> ControllerErrorExpand description
An OAuth error response (RFC 6749 §4.1.2.1, §5.2). With redirect, which must be a redirect URI
verified for the client, it is sent to the client as a redirect; otherwise it is answered as
JSON.