Errors from provider.Collect() and json.Marshal were returned with HTTP 200, making failures invisible to monitoring, proxies, and clients that check status codes. Return 500 Internal Server Error so HTTP-level tooling can detect failures without parsing the response body. |
||
|---|---|---|
| .. | ||
| options.go | ||
| options_test.go | ||
| registry.go | ||
| registry_test.go | ||
| server.go | ||
| server_test.go | ||
| types.go | ||
| types_test.go | ||