Fixed storing of status code, added storing of headers and contentType