Skip to content

Commit b7e10b4

Browse files
committed
fix(graph): no sufficient scope should returns Forbidden
1 parent 1ca5991 commit b7e10b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph/defs/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (e GqlError) Error() string {
1818
func NewErrNoSufficientScope(requireScope string) GqlError {
1919
return GqlError{
2020
Message: fmt.Sprintf("no sufficient scope: %s", requireScope),
21-
Code: CodeUnauthorized,
21+
Code: CodeForbidden,
2222
}
2323
}
2424

0 commit comments

Comments
 (0)