Return http 500 if agent uses invalid API key and is not unenrolled #2854
Labels
Supportability
Improve our (devs, SREs, support eng, users) ability to troubleshoot/self-service product better.
In telemetry we are seeing a lot of occurrences of 400/401 errors which are caused by unenrolled agents making requests with invalid API keys.
In order to filter out this noise, we want to have a different error code (500) for those cases where the agent is not unenrolled but still using an invalid API key.
Example:
The text was updated successfully, but these errors were encountered: