Skip to main content

HTTP Status Codes: The Complete List (404, 500, 301)


HTTP Status Codes: The Complete List (404, 500, 301)


When you browse the internet, you are engaging in a silent, non-stop conversation.
You click a link, and your browser asks a server: "Can I see this page?"
The server replies with a number.

Usually, that number is invisible. It says "200 OK," and the page loads instantly.
But sometimes, the conversation goes wrong. The server replies with 404, 503, or 403.

These numbers are called HTTP Status Codes. They are the universal language of the web, explaining exactly what happened to your request.

Whether you are a developer debugging an API, a website owner fixing broken links, or just a user wondering why a website won't load, understanding these codes is essential.

This guide is the only resource you need to understand every code, fix common errors, and speak the language of the web.

What Are HTTP Status Codes?

An HTTP Status Code is a three-digit number sent by a web server in response to a browser's request.

Think of it like a traffic light for the internet:

  • Green (200s): Go ahead, everything is fine.

  • Yellow (300s): Detour, go somewhere else.

  • Red (400s & 500s): Stop, something is broken.

These codes are defined by the Internet Engineering Task Force (IETF) to ensure that a Chrome browser, an iPhone app, and a Google web crawler all understand server responses in the exact same way.

The Five Classes of Status Codes

The first digit of the code tells you the general category of the response.

1xx: Informational (Hold on...)

These codes are rare. They mean the server has received your request and is still working on it. You will almost never see these as a user.

  • Example: 100 Continue

2xx: Success (It worked!)

These are the codes you want. They mean the request was successfully received, understood, and accepted.

  • Example: 200 OK (The standard response for successful web pages).

3xx: Redirection (Go somewhere else)

The server says, "I don't have that page here anymore, but I know where it is." Your browser automatically jumps to the new address.

  • Example: 301 Moved Permanently

4xx: Client Error (You made a mistake)

The server says, "I can't help you because you asked for something wrong." This is usually a bad URL, a missing permission, or a file that doesn't exist.

  • Example: 404 Not Found

5xx: Server Error (I made a mistake)

The server says, "You did everything right, but I crashed." This means the website's backend is broken.

  • Example: 500 Internal Server Error


The Most Common Codes Explained (And How to Fix Them)

You don't need to memorize all 63 codes. These are the top 10 you will encounter in real life.

200 OK

  • Meaning: Success. The page loaded perfectly.

  • Action: None. This is good.

301 Moved Permanently

  • Meaning: The old URL has changed forever.

  • Why it matters: This is crucial for SEO. It tells Google, "Transfer all the ranking power from the old page to the new one."

  • Real World: You type mysite.com and it automatically becomes www.mysite.com.

302 Found (Temporary Redirect)

  • Meaning: The page is somewhere else right now, but check back here later.

  • Why it matters: Unlike 301, this does not update Google's index. Use this only for short maintenance.

400 Bad Request

  • Meaning: The server didn't understand you.

  • Common Causes:

    • You typed a URL with illegal characters (like spaces or weird symbols).

    • Your browser sent a "cookie" that is too large or corrupted.

    • You are trying to upload a file that is too big.

  • How to Fix: Clear your browser cache and cookies. Check the URL for typos.

401 Unauthorized

  • Meaning: "Who are you?" You need to log in.

  • Common Causes: You are trying to access a dashboard or admin panel without signing in first.

  • How to Fix: Log in with a valid username and password.

403 Forbidden

  • Meaning: "I know who you are, but you aren't allowed in."

  • Difference from 401: Logging in won't help. You simply don't have permission (e.g., a regular user trying to access the Super Admin page).

  • How to Fix: Contact the site administrator to request access.

404 Not Found

  • Meaning: The classic error. The page doesn't exist.

  • Common Causes:

    • You mistyped the URL.

    • The page was deleted.

    • The link you clicked is dead ("link rot").

  • How to Fix: Check your spelling. Use the site's search bar to find the content.

429 Too Many Requests

  • Meaning: You are clicking too fast.

  • Why it exists: To prevent hackers or bots from crashing a server (DDoS protection).

  • How to Fix: Wait a minute and try again.

500 Internal Server Error

  • Meaning: A generic "crash" message. The server is confused.

  • Common Causes: Broken code in the website's backend (PHP/Python/Java).

  • How to Fix: As a user, you can't. Reload the page or come back later. As a developer, check your server error logs.

502 Bad Gateway

  • Meaning: One server tried to talk to another server, and it didn't work.

  • Real World: Often seen when a website is overwhelmed by too much traffic. The "front door" (load balancer) is open, but the "house" (database) is locked.

  • How to Fix: Refresh the page. It is usually temporary.

503 Service Unavailable

  • Meaning: The server is overloaded or down for maintenance.

  • Real World: "We'll be back shortly" screens.

  • How to Fix: Come back later.


4xx vs 5xx: Whose Fault Is It?

This is the most important distinction to learn.

  • 4xx Error = Your Fault (Client Side).

    • You typed the wrong URL.

    • You aren't logged in.

    • You are sending bad data.

    • Fix: The user must change their request.

  • 5xx Error = Their Fault (Server Side).

    • The website's code crashed.

    • The database is offline.

    • The server ran out of memory.

    • Fix: The website admin must fix the server.

SEO Impact of Status Codes

If you run a website, these codes directly affect your Google ranking.

  1. 404s kill rankings: If Google crawls your site and finds lots of 404s, it thinks your site is poorly maintained and may lower your rank.

  2. 301 is King: Always use a 301 (Permanent) redirect when moving content. If you use 302 (Temporary), Google will keep showing the old, broken link in search results.

  3. Soft 404s: This happens when a page looks like an error (says "Page Not Found") but sends a 200 OK code. This confuses Google. Always ensure error pages send the actual 404 code.

Frequently Asked Questions (FAQ)

What is a "Soft 404"?

A Soft 404 is when a server returns a standard "200 OK" success code, but the content of the page says "Error: Page not found." This is bad for SEO because search engines index the error page as if it were real content.

Can I fix a 500 error myself?

If you are just a visitor, no. The problem is on the website's computer, not yours. You can try clearing your cache (just in case), but usually, you have to wait for the webmaster to fix it.

What is code 418 "I'm a Teapot"?

This is a famous April Fools' joke from 1998 (RFC 2324). It is a real, valid status code defined in the HTTP standard, but it serves no purpose other than humor. It means "I refuse to brew coffee because I am a teapot."

Why do I see 302 instead of 301?

A 302 redirect is easier to set up in some systems, so lazy developers often use it by default. However, for permanent moves, you should always force a 301 to preserve your SEO ranking.

How do I view the status code of a page?

In Chrome or Firefox, right-click the page and select Inspect. Go to the Network tab and refresh the page. The very first line (usually the page name) will show the status code (e.g., 200 or 301).



Comments

Popular posts from this blog

QR Code Guide: How to Scan & Stay Safe in 2026

Introduction You see them everywhere: on restaurant menus, product packages, advertisements, and even parking meters. Those square patterns made of black and white boxes are called QR codes. But what exactly are they, and how do you read them? A QR code scanner is a tool—usually built into your smartphone camera—that reads these square patterns and converts them into information you can use. That information might be a website link, contact details, WiFi password, or payment information. This guide explains everything you need to know about scanning QR codes: what they are, how they work, when to use them, how to stay safe, and how to solve common problems. What Is a QR Code? QR stands for "Quick Response." A QR code is a two-dimensional barcode—a square pattern made up of smaller black and white squares that stores information.​ Unlike traditional barcodes (the striped patterns on products), QR codes can hold much more data and can be scanned from any angle.​ The Parts of a ...

PNG to PDF: Complete Conversion Guide

1. What Is PNG to PDF Conversion? PNG to PDF conversion changes picture files into document files. A PNG is a compressed image format that stores graphics with lossless quality and supports transparency. A PDF is a document format that can contain multiple pages, text, and images in a fixed layout. The conversion process places your PNG images inside a PDF container.​ This tool exists because sometimes you need to turn graphics, logos, or scanned images into a proper document format. The conversion wraps your images with PDF structure but does not change the image quality itself.​ 2. Why Does This Tool Exist? PNG files are single images. They work well for graphics but create problems when you need to: Combine multiple graphics into one file Create a professional document from images Print images in a standardized format Submit graphics as official documents Archive images with consistent formatting PDF format solves these problems because it can hold many pages in one file. PDFs also...

Compress PDF: Complete File Size Reduction Guide

1. What Is Compress PDF? Compress PDF is a process that makes PDF files smaller by removing unnecessary data and applying compression algorithms. A PDF file contains text, images, fonts, and structure information. Compression reduces the space these elements take up without changing how the document looks.​ This tool exists because PDF files often become too large to email, upload, or store efficiently. Compression solves this problem by reorganizing the file's internal data to use less space.​ 2. Why Does This Tool Exist? PDF files grow large for many reasons: High-resolution images embedded in the document Multiple fonts included in the file Interactive forms and annotations Metadata and hidden information Repeated elements that aren't optimized Large PDFs create problems: Email systems often reject attachments over 25MB Websites have upload limits (often 10-50MB) Storage space costs money Large files take longer to download and open Compression solves these problems by reduc...

Something Amazing is on the Way!

PDF to JPG Converter: Complete Guide to Converting Documents

Converting documents between formats is a common task, but understanding when and how to do it correctly makes all the difference. This guide explains everything you need to know about PDF to JPG conversion—from what these formats are to when you should (and shouldn't) use this tool. What Is a PDF to JPG Converter? A PDF to JPG converter is a tool that transforms Portable Document Format (PDF) files into JPG (or JPEG) image files. Think of it as taking a photograph of each page in your PDF document and saving it as a picture file that you can view, share, or edit like any other image on your computer or phone. When you convert a PDF to JPG, each page of your PDF typically becomes a separate image file. For example, if you have a 5-page PDF, you'll usually get 5 separate JPG files after conversion—one for each page. Understanding the Two Formats PDF (Portable Document Format) is a file type designed to display documents consistently across all devices. Whether you open a PDF o...

Password: The Complete Guide to Creating Secure Passwords

You need a password for a new online account. You sit and think. What should it be? You might type something like "MyDog2024" or "December25!" because these are easy to remember. But here is the problem: These passwords are weak. A hacker with a computer can guess them in seconds. Security experts recommend passwords like "7$kL#mQ2vX9@Pn" or "BlueMountainThunderStrike84". These are nearly impossible to guess. But they are also nearly impossible to remember. This is where a password generator solves a real problem. Instead of you trying to create a secure password (and likely failing), software generates one for you. It creates passwords that are: Secure: Too random to guess or crack. Unique: Different for every account. Reliably strong: Not subject to human bias or predictable patterns. In this comprehensive guide, we will explore how password generators work, what makes a password truly secure, and how to use them safely without compromising you...

Images to WebP: Modern Format Guide & Benefits

Every second, billions of images cross the internet. Each one takes time to download, uses data, and affects how fast websites load. This is why WebP matters. WebP is a newer image format created by Google specifically to solve one problem: make images smaller without making them look worse. But the real world is complicated. You have old browsers. You have software that does not recognize WebP. You have a library of JPEGs and PNGs that you want to keep using. This is where the Image to WebP converter comes in. It is a bridge between the old image world and the new one. But conversion is not straightforward. Converting images to WebP has real benefits, but also real limitations and trade-offs that every user should understand. This guide teaches you exactly how WebP works, why you might want to convert to it (and why you might not), and how to do it properly. By the end, you will make informed decisions about when WebP is right for your situation. 1. What Is WebP and Why Does It Exist...

Investment: Project Growth & Future Value

You have $10,000 to invest. You know the average stock market historically returns about 10% per year. But what will your money actually be worth in 20 years? You could try to calculate it manually. Year 1: $10,000 × 1.10 = $11,000. Year 2: $11,000 × 1.10 = $12,100. And repeat this 20 times. But your hands will cramp, and you might make arithmetic errors. Or you could use an investment calculator to instantly show that your $10,000 investment at 10% annual growth will become $67,275 in 20 years—earning you $57,275 in pure profit without lifting a finger. An investment calculator projects the future value of your money based on the amount you invest, the annual return rate, the time period, and how often the gains compound. It turns abstract percentages into concrete dollar amounts, helping you understand the true power of long-term investing. Investment calculators are used by retirement planners estimating nest eggs, young people understanding the value of starting early, real estate ...

Standard Deviation: The Complete Statistics Guide

You are a teacher grading student test scores. Two classes both have an average of 75 points. But one class has scores clustered tightly: 73, 74, 75, 76, 77 (very similar). The other class has scores spread wide: 40, 60, 75, 90, 100 (very different). Both average to 75, but they are completely different. You need to understand the spread of the data. That is what standard deviation measures. A standard deviation calculator computes this spread, showing how much the data varies from the average. Standard deviation calculators are used by statisticians analyzing data, students learning statistics, quality control managers monitoring production, scientists analyzing experiments, and anyone working with data sets. In this comprehensive guide, we will explore what standard deviation is, how calculators compute it, what it means, and how to use it correctly. 1. What is a Standard Deviation Calculator? A standard deviation calculator is a tool that measures how spread out data values are from...

Subnet: The Complete IP Subnetting and Network Planning Guide

You are a network administrator setting up an office network. Your company has been assigned the IP address block 192.168.1.0/24. You need to divide this into smaller subnets for different departments. How many host addresses are available? What are the subnet ranges? Which IP addresses can be assigned to devices? You could calculate manually using binary math and subnet formulas. It would take significant time and be error-prone. Or you could use a subnet calculator to instantly show available subnets, host ranges, broadcast addresses, and network details. A subnet calculator computes network subnetting information by taking an IP address and subnet mask (or CIDR notation), then calculating available subnets, host ranges, and network properties. Subnet calculators are used by network administrators planning networks, IT professionals configuring systems, students learning networking, engineers designing enterprise networks, and anyone working with IP address allocation. In this compre...