Agniva De Sarker
97b3ffd7ea
MM-43202: Change some 501 response codes to fix SLO violations ( #20767 )
...
There were lots of cases where we were using the code 501
in an incorrect manner, and since 5xx codes are considered
as SLO violations, these were flagged by our monitoring incorrectly.
These were the guidelines to change the codes:
1. Any case of missing license or config not correctly enabled
is set as Forbidden. The logic is that the user is correctly
authenticated with a session, but does not have enough privileges
to have the higher license, or hasn't changed the config correctly.
2. Any case of incorrectly formed request is obviously a 400.
https://mattermost.atlassian.net/browse/MM-43202
```release-note
NONE
```
2022-08-08 20:02:49 +05:30
..
2022-07-05 09:46:50 +03:00
2022-07-05 09:46:50 +03:00
2022-04-27 19:27:06 +03:00
2022-07-05 09:46:50 +03:00
2022-08-05 08:49:01 +05:30
2022-08-08 16:52:31 +03:00
2022-07-05 09:46:50 +03:00
2022-07-14 11:01:29 +02:00
2022-08-05 08:49:01 +05:30
2022-07-18 10:58:06 +02:00
2022-07-18 10:58:06 +02:00
2022-07-05 09:46:50 +03:00
2022-02-02 09:19:47 -05:00
2022-08-08 16:52:31 +03:00
2022-05-17 13:30:40 +02:00
2022-08-08 16:52:31 +03:00
2022-03-15 16:39:23 +03:00
2022-08-02 10:59:29 +03:00
2022-08-08 16:52:31 +03:00
2022-06-09 14:56:26 +05:30
2022-07-05 09:46:50 +03:00
2022-07-14 11:01:29 +02:00
2022-07-29 09:58:44 +05:30
2022-07-28 10:04:21 +05:30
2022-07-28 10:04:21 +05:30
2022-07-28 10:04:21 +05:30
2022-08-01 13:48:45 +05:30
2021-12-07 21:53:24 +05:30
2022-07-14 12:17:52 +05:30
2021-09-01 14:43:12 +02:00
2022-07-14 11:01:29 +02:00
2022-08-05 08:49:01 +05:30
2022-08-08 16:52:31 +03:00
2022-08-05 08:49:01 +05:30
2022-08-08 16:52:31 +03:00
2022-07-15 13:20:40 -04:00
2021-07-22 12:21:47 +05:30
2022-08-08 16:52:31 +03:00
2021-11-08 11:57:22 +05:30
2022-07-15 13:20:40 -04:00
2022-08-02 20:48:54 +05:30
2021-09-01 14:43:12 +02:00
2021-07-21 16:38:39 +02:00
2022-08-02 20:48:54 +05:30
2022-04-11 19:31:19 +05:30
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2021-01-04 11:32:29 +05:30
2022-07-14 11:01:29 +02:00
2021-07-22 12:21:47 +05:30
2021-08-16 19:46:44 +02:00
2022-08-08 16:52:31 +03:00
2022-04-08 12:20:44 -05:00
2022-08-08 20:02:49 +05:30
2022-03-15 16:39:23 +03:00
2022-08-08 16:52:31 +03:00
2022-02-14 18:21:18 +01:00
2022-07-05 09:46:50 +03:00
2022-06-24 12:37:07 -04:00
2022-08-02 20:48:54 +05:30
2022-08-02 20:48:54 +05:30
2021-05-25 22:00:57 -03:00
2022-01-20 10:07:27 +05:30
2022-08-04 11:21:51 +05:30
2022-07-26 12:17:23 +05:30
2022-08-04 11:21:51 +05:30
2022-07-14 11:01:29 +02:00
2022-08-05 08:49:01 +05:30
2022-08-02 10:59:29 +03:00
2021-08-12 17:43:10 +02:00
2022-07-14 11:01:29 +02:00
2022-08-01 13:48:45 +05:30
2022-05-17 13:30:40 +02:00
2022-06-24 12:37:07 -04:00
2021-03-24 10:32:16 +01:00
2021-03-24 10:32:16 +01:00
2022-05-27 15:48:00 +05:30
2022-07-05 09:46:50 +03:00
2022-07-14 11:01:29 +02:00
2022-07-14 11:01:29 +02:00
2022-07-14 11:01:29 +02:00
2022-05-25 12:36:08 -04:00
2022-07-05 09:46:50 +03:00
2021-07-22 12:21:47 +05:30
2021-08-04 11:10:53 +02:00
2022-08-08 16:52:31 +03:00
2022-03-31 18:25:46 +03:00
2022-08-08 16:52:31 +03:00
2021-07-22 12:21:47 +05:30
2022-07-28 10:04:21 +05:30
2021-08-17 16:08:04 -04:00
2022-08-08 16:52:31 +03:00
2022-07-14 11:01:29 +02:00
2022-07-14 11:01:29 +02:00
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2022-07-28 10:04:21 +05:30
2022-07-14 11:01:29 +02:00
2022-04-28 17:31:35 -04:00
2022-07-05 09:46:50 +03:00
2022-05-25 12:36:08 -04:00
2021-08-12 11:49:16 +02:00
2021-10-15 19:57:05 +05:30
2022-08-08 16:52:31 +03:00
2021-07-22 12:21:47 +05:30
2022-03-03 08:10:41 -08:00
2022-07-05 09:46:50 +03:00
2022-07-15 13:20:40 -04:00
2022-08-02 20:48:54 +05:30
2022-07-28 10:04:21 +05:30
2022-07-05 09:46:50 +03:00
2022-08-02 20:48:54 +05:30
2021-05-11 13:00:44 +03:00
2022-07-05 09:46:50 +03:00
2022-07-05 09:46:50 +03:00
2021-11-08 11:57:22 +05:30
2021-07-22 12:21:47 +05:30
2022-08-04 11:21:51 +05:30
2021-11-12 10:35:14 +05:30
2022-07-05 09:46:50 +03:00
2022-07-15 13:20:40 -04:00
2019-12-05 23:41:52 +04:00
2021-11-12 10:35:14 +05:30
2022-06-07 09:12:15 +03:00
2021-11-08 11:57:22 +05:30
2022-03-15 16:39:23 +03:00
2022-08-08 16:52:31 +03:00
2022-02-21 21:41:04 +05:30
2022-07-28 17:05:03 +02:00
2022-08-02 10:59:29 +03:00
2022-07-25 16:01:59 -05:00
2022-07-25 16:01:59 -05:00
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2022-08-05 08:49:01 +05:30
2022-08-05 08:49:01 +05:30
2022-07-18 10:58:06 +02:00
2022-07-05 09:46:50 +03:00
2022-07-05 09:46:50 +03:00
2022-07-05 09:46:50 +03:00
2021-07-22 12:21:47 +05:30
2021-08-19 10:33:29 +02:00
2022-08-08 16:52:31 +03:00
2022-07-14 11:01:29 +02:00
2021-07-22 12:21:47 +05:30
2022-02-28 15:01:00 +05:30
2021-07-22 12:21:47 +05:30
2019-11-29 12:59:40 +01:00
2022-07-14 11:01:29 +02:00
2022-08-05 08:49:01 +05:30
2022-08-08 16:52:31 +03:00
2021-12-07 09:43:33 -08:00
2021-10-12 11:39:49 +05:30
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2022-08-08 16:52:31 +03:00
2022-07-14 11:01:29 +02:00
2022-07-05 09:46:50 +03:00
2022-07-14 11:01:29 +02:00
2021-07-22 12:21:47 +05:30
2021-07-22 12:21:47 +05:30
2022-07-14 11:01:29 +02:00
2022-07-14 11:01:29 +02:00
2021-07-22 12:21:47 +05:30
2022-07-14 11:01:29 +02:00
2022-08-08 16:52:31 +03:00
2022-07-28 10:04:21 +05:30
2022-05-03 21:13:16 +05:30
2022-05-03 21:13:16 +05:30
2022-07-28 10:04:21 +05:30
2022-08-05 08:49:01 +05:30
2022-08-08 16:52:31 +03:00
2022-08-05 08:49:01 +05:30
2021-11-12 10:16:19 +03:00
2021-07-22 12:21:47 +05:30
2022-07-14 11:01:29 +02:00
2022-07-22 09:14:01 +02:00
2022-05-17 13:30:40 +02:00
2022-07-11 07:21:29 -05:00
2020-03-19 11:18:17 +01:00
2020-03-19 11:18:17 +01:00
2020-06-19 17:49:30 +05:30
2021-07-22 12:21:47 +05:30
2022-08-08 16:52:31 +03:00
2022-07-28 10:04:21 +05:30
2022-08-05 08:49:01 +05:30
2022-07-14 11:01:29 +02:00
2022-07-11 23:26:47 +05:30
2022-08-08 16:52:31 +03:00
2022-08-02 10:59:29 +03:00
2022-07-14 11:01:29 +02:00
2022-07-14 11:01:29 +02:00
2022-07-05 09:46:50 +03:00
2021-11-16 19:43:43 +05:30