Basically, I am writing a wordpress plugin. The first function my plugin does is identify what HTTP response code and headers are scheduled to be sent (before sending them).
Based on the http status code, it would place a hook and may modify the HTTP response based on other things.
This is my first plugin I am writing and you could guess my experience in this - I am still with the basics of plugin writing.