Is there a way to monitor API error rate & HTTP request response performance

How to monitor API error rate in case the server encounters some random issues and returning error codes due to that to the API
2. HTTP request response performance