OpenCHAMI / smd

MIT License
0 stars 4 forks source link

Add HTTP status code for public key fetch failures #24

Closed cjh1 closed 5 months ago

cjh1 commented 5 months ago

Use a custom transport to generate an error that includes the HTTP status code for failing requests.

Fixes: #19

Example of what this looks like in the logs for 404:

2024/06/24 14:29:49.725312 main.go:960: failed to initialize auth token: failed to fetch "http://opaal:3333/keyss": Get "http://opaal:3333/keyss": status code: 404