HTTP

HTTP 402 Payment Required vs 499 Client Closed Request

Both HTTP 402 (Payment Required) and 499 (Client Closed Request) belong to the 4xx Client Error category. 402 indicates that reserved for future use. Originally intended for digital payment systems, some APIs use it to indicate a billing or subscription issue. Meanwhile, 499 means that a non-standard status code used by Nginx when the client closes the connection before the server responds.

Description

Reserved for future use. Originally intended for digital payment systems, some APIs use it to indicate a billing or subscription issue.

When You See It

On some APIs when a subscription has expired or payment is needed.

How to Fix

Check your billing status, update payment method, or upgrade your subscription.

Description

A non-standard status code used by Nginx when the client closes the connection before the server responds.

When You See It

In Nginx logs when clients timeout or navigate away before receiving the response.

How to Fix

Optimize server response times. Check for slow upstream services.

Key Differences

1.

HTTP 402: Reserved for future use. Originally intended for digital payment systems, some APIs use it to indicate a billing or subscription issue.

2.

HTTP 499: A non-standard status code used by Nginx when the client closes the connection before the server responds.

3.

You encounter 402 when on some APIs when a subscription has expired or payment is needed.

4.

You encounter 499 when in Nginx logs when clients timeout or navigate away before receiving the response.

When to Use Which

For 402 (Payment Required): Check your billing status, update payment method, or upgrade your subscription. For 499 (Client Closed Request): Optimize server response times. Check for slow upstream services.

Learn More