HTTP

HTTP 423 Locked vs 502 Bad Gateway

HTTP 423 (Locked) is a 4xx Client Error response, while 502 (Bad Gateway) is a 5xx Server Error response. 423 indicates that the resource is locked and cannot be modified (WebDAV). In contrast, 502 means that the server, acting as a gateway or proxy, received an invalid response from the upstream server.

Description

The resource is locked and cannot be modified (WebDAV).

When You See It

When trying to edit a file that another user has locked in WebDAV.

How to Fix

Wait for the lock to be released, or request the lock owner to unlock it.

Description

The server, acting as a gateway or proxy, received an invalid response from the upstream server.

When You See It

When Nginx/Apache can't reach the application server (e.g., Gunicorn is down, upstream timeout).

How to Fix

Check if the upstream server is running. Verify proxy configuration. Check for upstream timeouts.

Key Differences

1.

423 is a 4xx Client Error response, while 502 is a 5xx Server Error response.

2.

HTTP 423: The resource is locked and cannot be modified (WebDAV).

3.

HTTP 502: The server, acting as a gateway or proxy, received an invalid response from the upstream server.

4.

You encounter 423 when when trying to edit a file that another user has locked in WebDAV.

5.

You encounter 502 when when Nginx/Apache can't reach the application server (e.g., Gunicorn is down, upstream timeout).

When to Use Which

For 423 (Locked): Wait for the lock to be released, or request the lock owner to unlock it. For 502 (Bad Gateway): Check if the upstream server is running. Verify proxy configuration. Check for upstream timeouts.

Learn More