Skip to content

Commit

Permalink
fix-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Sep 26, 2023
1 parent a626a3a commit 52f4e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/api/iam/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type OAuth2Error struct {
RedirectURI string `json:"-"`
}

// StatusCode returns the HTTP status code to be returned to the client. It is defined for compatibility with core.HTTPStatusCodeError.
// StatusCode returns the HTTP status code to be returned to the client, in case the user-agent can't be redirected with HTTP 302 - Found.
func (e OAuth2Error) StatusCode() int {
switch e.Code {
case ServerError:
Expand Down

0 comments on commit 52f4e99

Please sign in to comment.