How come you're checking against errorThrown instead of status code? Seems less robust/more confusing.

Also, as a style thing we're pretty committed to not using `==` ever and using `===` always, just so we never have to think about the random edge cases where `==` does the obviously wrong thing.