Hi Arthi,
Is it possible to share with us which metric did you get to monitor your tomcat.
Regarding your question, and if you didn't find how to monitor the response code, I suggest you to use the grok_exporter as the response code is in the tomcat's access log file.
Best Regards
Nabil L.