Function failWRDAPIUserAuth
- failWRDAPIUserAuth(
error: string,
errorCode?: 401 | 403,
): OpenAPIAuthorization<AuthorizedWRDAPIUser>Parameters
- error: string
- errorCode: 401 | 403 = HTTPErrorCode.Forbidden
Returns OpenAPIAuthorization<AuthorizedWRDAPIUser>
Craft a 403/401 error response. Should be used by verifyWRDAPIUser wrappers