So I've finally gotten around to trying AJAX again (rather than hidden iframes), and I now remember why I hated AJAX so much in the first place.
It's a simple script that queries the server for the number of private messages the user has received. The server responds with a single number, and the script updates the indicator and sets a timeout for five seconds to query again.
On rare occasion (usually when I go AFK for a while), I start getting the most bizarre HTTP status codes.
On Chrome: "AJAX request failed to retrieve /ajax/network.php, HTTP status 0"
On IE: "AJAX request failed to retrieve /ajax/network.php, HTTP status 12029"
Neither of these codes are valid. What's going on here, and how can I stop it from happening?