Unauthorized error when a device is not found

Hi all,

I’m using the Java library to send gRPC requests to ChirpStack v4.12.1. While gathering information for a device which did not exist in the application, I received an “Unauthorized” error with an empty error body. I was expecting a “Not found” or similar 404-type response instead.

Has anyone else encountered this behavior? Is this the expected response from ChirpStack?

Thanks in advance!

Sascha