summaryrefslogtreecommitdiff
path: root/doc/development/secure_coding_guidelines.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-11 03:09:00 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-11 03:09:00 +0000
commit574ed32358d8e502793bf133099d1b6e3b8e3d76 (patch)
treefc7e88674da5abf366b3619f5954cacbb1157eef /doc/development/secure_coding_guidelines.md
parent67d19cc004e5956ca51a85050fceedaa55750526 (diff)
downloadgitlab-ce-574ed32358d8e502793bf133099d1b6e3b8e3d76.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/secure_coding_guidelines.md')
-rw-r--r--doc/development/secure_coding_guidelines.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/secure_coding_guidelines.md b/doc/development/secure_coding_guidelines.md
index 700de9e6b6e..11a15f38823 100644
--- a/doc/development/secure_coding_guidelines.md
+++ b/doc/development/secure_coding_guidelines.md
@@ -53,7 +53,7 @@ Each time you implement a new feature/endpoint, whether it is at UI, API or Grap
Be careful to **also test [visibility levels](https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/doc/development/permissions.md#feature-specific-permissions)** and not only project access rights.
-The HTTP status code returned when an authorization check fails should generally be `404 Not Found` in order to avoid revealing information
+The HTTP status code returned when an authorization check fails should generally be `404 Not Found` to avoid revealing information
about whether or not the requested resource exists. `403 Forbidden` may be appropriate if you need to display a specific message to the user
about why they cannot access the resource. If you are displaying a generic message such as "access denied", consider returning `404 Not Found` instead.