In your changes, but when an error is triggered, do we need to invoke `onreadystateCallback` in JS?