im trying to return a message on an api call if user is not Authenticated
By default a 401 response with { "message": "Unauthenticated"} is returned for API requests (or rather requests that expect a JSON response).
You want to change that message or what exactly is it you are trying to achieve? You could simply override the unauthenticated() method inside your Authenticate middleware.