HTTP Code 499


Http status code 499 is a non-standard status code introduced by nginx for the case when a client closes the connection while nginx is processing the request.

I just encountered the 499 code in the nginx log a couple days ago. The reason of that is I wrote a Ajax to make a API call to the backend where nginx is the reverse proxy, but the page get refreshed before the backend sends back the response. 

To fix it, I added ‘return false;‘ to stop the page to reload. 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s