CodeNameMeaning & Debugging / SEO Tip

HTTP Status Classes & SEO Impact Summary

Frequently Asked Questions

What is the difference between 401 Unauthorized and 403 Forbidden?

401 means the client has not proven who they are (missing/expired login or token). 403 means the server understands the request but refuses to grant access even with credentials.

Should I use 301 or 302 when moving a web page permanently?

Use 301 (or 308) for permanent moves so Google and Bing consolidate ranking signals onto the new canonical URL.

How do I fix a 502 Bad Gateway error?

502 happens when a proxy like nginx or Cloudflare cannot get a valid HTTP response from the origin process—check whether the backend service crashed, restarted, or listens on the expected port.

Quick Triage: Choosing the Exact HTTP Status Code for REST APIs & SEO

Frequently Asked Questions

When should an API return 400 vs 422?
Use 400 Bad Request for malformed JSON or syntax errors, and 422 Unprocessable Entity when syntax is valid but business validation rules fail.
Does a 404 or 410 remove a deleted page from search faster?
Both drop a URL from search indexes; 410 Gone signals an intentional permanent removal rather than a potentially accidental 404.
What causes 502 Bad Gateway vs 504 Gateway Timeout?
502 means an upstream server returned an invalid response or crashed; 504 means the upstream server did not respond before the proxy timeout expired.