Files
nomad/command/agent
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
..
2018-03-11 17:43:19 +00:00
2017-10-13 13:12:20 -07:00
2019-11-11 15:16:07 -05:00
2018-03-11 18:35:30 +00:00
2018-10-16 16:56:55 -07:00
2017-10-13 14:36:02 -07:00
2019-11-19 15:51:57 -05:00
2016-10-17 10:48:04 -07:00
2017-07-20 09:36:34 -07:00
2018-09-13 10:43:40 -07:00
2017-07-20 09:36:34 -07:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2017-09-07 17:04:21 -07: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