openfga.dev icon indicating copy to clipboard operation
openfga.dev copied to clipboard

Change 401 to 403 error in the framework docs

Open Sambego opened this issue 1 year ago • 2 comments
trafficstars

Update the Framework implementation docs to suggest throwing a 403 Forbidden error instead of a 401 Unauthorized error when a check returns not allowed.

Description

References

Review Checklist

  • [x] I have clicked on "allow edits by maintainers".
  • [x] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • [x] The correct base branch is being used, if not main
  • [ ] I have added tests to validate that the change in functionality is working as expected

Sambego avatar Mar 25 '24 15:03 Sambego

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: Sambego / name: Sam Bellen (e9b991f56c0a60b25182cba54c28a15e1afd7127)
  • :white_check_mark: login: ryanpq / name: Ryan Quinn (02992d682e8bce59b170b7427b15b6e55d49889d, 60fbbda71811aae8744dcd9ee40b48897fff391d, 57c06eccb13406b7eb0d8afdc9aae28980eeb2ed)

PR Preview Action v1.4.7 :---: Preview removed because the pull request was closed. 2024-09-13 15:01 UTC

github-actions[bot] avatar Mar 25 '24 15:03 github-actions[bot]