Adding variable to store Status Code in restful.Response since it is not accessible in the ResponseWriter

Made the necessary changes to add the Status Code into the restful.Response.