WIP: Added new error states for readyStateChange event