Caching status code as well as body

Cached error responses are returning with 200 status code. Added support for caching the status code along with the response body.