C: C4 REST error mapping through peer_error_to_app with per-row tests
This commit is contained in:
1 parent
58012018d9
commit
767b198ed7
2 files changed
+101
No files matched your search
@@ -49,6 +49,8 @@ A request that already has `x-slinuxm-hop` is `400` `peer <name>: chained reques
|
||||
|
||||
Every proxied response, including the consolidator's own errors for that peer (`400`, `404`, `500`, `503`), carries `x-slinuxm-peer: <name>`.
|
||||
|
||||
A peer failure never becomes `401`: a peer refusing the consolidator's token is `503` `peer <name>: peer rejected credentials`, so the caller does not re-authenticate against the wrong host.
|
||||
|
||||
```sh
|
||||
curl -H "Authorization: Bearer $TOKEN" 'http://127.0.0.1:1984/api/v1/peers/beta/systemd/units?state=failed'
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user