Expected Behavior
We are using micronaut 4.7.5 version and observed that if service is retruning 400 bad request, micrometer is recording the status as 500. Because of this we are facing issue with service unavailability as 500 status code is considered as service unavailability and we are currently blocked on this
http_server_requests_seconds_count{exception="GenericException",method="POST",status="400",uri="/v1/test"}
Actual Behaviour
http_server_requests_seconds_count{exception="GenericException",method="POST",status="500",uri="/v1/test"}
Steps To Reproduce
No response
Environment Information
No response
Example Application
No response
Version
4.7.5