Moved user agent headers into the ctor
Updated error handling to better manage fields and error codes