Properly save status code in HTTPRequest