Mahmood Ali
fd66b9c9ab
api: acl bootstrap errors aren't 500
...
Noticed that ACL endpoints return 500 status code for user errors. This
is confusing and can lead to false monitoring alerts.
Here, I introduce a concept of RPCCoded errors to be returned by RPC
that signal a code in addition to error message. Codes for now match
HTTP codes to ease reasoning.
```
$ nomad acl bootstrap
Error bootstrapping: Unexpected response code: 500 (ACL bootstrap already done (reset index: 9))
$ nomad acl bootstrap
Error bootstrapping: Unexpected response code: 400 (ACL bootstrap already done (reset index: 9))
```
2019-11-19 15:51:57 -05:00
..
2019-11-18 13:04:01 -05:00
2019-11-05 11:44:29 -05:00
2019-07-20 16:55:07 +02:00
2019-10-07 14:16:59 +02:00
2018-03-11 17:43:19 +00:00
2017-10-13 13:12:20 -07:00
2019-11-05 11:44:28 -05:00
2019-11-14 10:07:35 -05:00
2019-11-11 09:46:46 -05:00
2019-11-13 08:20:01 -05:00
2019-10-08 12:59:22 -04:00
2019-06-21 16:20:06 +00:00
2019-11-18 13:04:01 -05:00
2019-01-08 15:07:36 +00:00
2019-11-11 15:16:07 -05:00
2018-03-22 13:53:08 -07:00
2019-10-07 14:16:59 +02:00
2019-08-21 22:19:58 +02:00
2019-08-30 09:33:30 -04:00
2019-10-07 14:16:59 +02:00
2017-11-17 14:53:26 -06:00
2017-11-17 14:53:26 -06:00
2018-03-11 18:35:30 +00:00
2015-09-07 10:03:10 -07:00
2019-10-15 17:22:03 -04:00
2019-10-04 16:33:58 -04:00
2018-02-15 13:59:02 -08:00
2018-10-16 16:56:55 -07:00
2017-10-13 14:36:02 -07:00
2019-11-13 10:51:31 -05:00
2019-11-19 15:51:57 -05:00
2019-10-17 19:25:20 +00:00
2019-10-17 15:14:09 -05:00
2017-10-23 16:48:20 -07:00
2016-10-17 10:48:04 -07:00
2019-10-10 13:51:16 +02:00
2019-10-10 14:02:14 +02:00
2017-07-20 09:36:34 -07:00
2019-07-24 13:37:08 +02:00
2019-04-30 10:31:35 -04:00
2018-09-13 10:43:40 -07:00
2019-07-15 18:34:53 +03:00
2019-07-15 18:34:53 +03:00
2019-06-04 15:54:50 -07:00
2019-05-03 14:06:12 -05:00
2019-01-22 15:50:08 -08:00
2017-07-20 09:36:34 -07:00
2015-11-24 09:38:07 -08:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2017-08-21 15:20:55 +00:00
2017-09-07 17:04:21 -07:00
2018-05-30 15:11:54 -05:00
2018-02-15 13:59:02 -08:00
2017-07-20 09:36:34 -07:00
2015-09-06 18:39:03 -07:00
2017-09-19 10:08:23 -05:00
2019-01-22 15:44:31 -08:00
2019-01-22 15:44:31 -08:00
2017-07-20 09:36:34 -07:00
2016-08-03 16:12:47 -07:00
2019-11-05 09:51:51 -05:00
2019-11-13 08:20:01 -05:00