4xxClient Error

4xx Client Error Status Codes

Showing 29 status codes

HTTP 4xx status codes indicate client errors where the request contains bad syntax, cannot be fulfilled, or the client doesn't have permission to access the requested resource. These errors are the client's responsibility to fix.

The most recognized 4xx code is 404 Not Found, indicating the requested resource doesn't exist. Other critical codes include 400 Bad Request (malformed syntax), 401 Unauthorized (authentication required), 403 Forbidden (authenticated but not authorized), and 429 Too Many Requests (rate limiting).

Understanding the differences between 4xx codes helps developers build better error handling and provide meaningful feedback to users. For example, knowing when to return 401 vs 403 helps users understand whether they need to log in or if they simply don't have permission.

๐Ÿคจ4004xxBad RequestHuh? The server is scratching its head because your request doesn't make sense. Like ordering a pizza with negative toppings.
๐Ÿ”4014xxUnauthorizedWho are you?! The bouncer needs to see some ID before letting you in. Time to log in!
๐Ÿ’ณ4024xxPayment RequiredTime to open your wallet! This code was reserved for when the web would have built-in payments. Still waiting on that future!
๐Ÿšซ4034xxForbiddenVIP only! You might know who you are, but you're not on the guest list for this party.
๐Ÿ”4044xxNot FoundThe internet's version of 'I looked everywhere and it's just not here!' Like searching for your keys in an empty pocket.
๐Ÿ™…4054xxMethod Not AllowedWrong approach! It's like trying to open a pull door by pushing. The door exists, you're just doing it wrong.
๐Ÿฝ๏ธ4064xxNot AcceptablePicky eater alert! You asked for something in a format the server can't serve. Like ordering sushi at a pizza place.
๐ŸŽซ4074xxProxy Authentication RequiredThe middleman needs ID too! Before reaching your destination, you need to prove yourself to the proxy server.
โฐ4084xxRequest TimeoutHello? Anyone there? The server waited and waited but you took too long. Like a restaurant giving away your table.
โš”๏ธ4094xxConflictClash of the titans! What you're trying to do doesn't match up with what's already there. Like double-booking a meeting room.
๐Ÿ‘ป4104xxGoneGone forever! Like a sandcastle washed away by the tide. It was here once, but now it's just... not.
๐Ÿ“4114xxLength RequiredHow much are you sending? The server needs to know the size upfront. No mystery packages allowed!
โŒ4124xxPrecondition FailedYour conditions weren't met! You said 'only if...' and the server said 'nope, that's not the case.'
๐Ÿ“ฆ4134xxPayload Too LargeThat's way too much! Like trying to stuff a king-size mattress into a compact car. Time to pack lighter!
๐Ÿ“œ4144xxURI Too LongThat URL is a novel! Like trying to write your life story on a sticky note. Keep it short and sweet!
๐Ÿ“ผ4154xxUnsupported Media TypeCan't read that! Like handing someone a Betamax tape in 2024. The server doesn't speak that format.
๐Ÿ“–4164xxRange Not SatisfiableYou asked for pages 500-600 of a 100-page book! The server can't give you bytes that don't exist.
๐Ÿ˜ž4174xxExpectation FailedSorry to disappoint! You expected something the server couldn't deliver. Expectations vs. reality strikes again.
๐Ÿซ–4184xxI'm a TeapotI'm a teapot, short and stout! This is a real HTTP code that exists because engineers have a sense of humor.
๐Ÿšช4214xxMisdirected RequestWrong door! You knocked on a server that can't help you with this particular request. Try another one!
๐Ÿค”4224xxUnprocessable EntityI understand what you're saying, but it doesn't make sense! Like asking to schedule a meeting for February 30th.
๐Ÿ”’4234xxLockedSomeone else has the keys! This resource is locked by another process. Wait your turn!
๐ŸŽฏ4244xxFailed DependencyDomino effect! A previous request in the chain failed, so this one can't proceed. Fix the first problem first!
โฐ4254xxToo EarlyHold your horses! The server isn't ready to trust this request yet. It might be a replay attack in disguise.
โฌ†๏ธ4264xxUpgrade RequiredTime for an upgrade! The server refuses to talk until you switch to a better, more secure protocol.
๐Ÿ”‘4284xxPrecondition RequiredSay the magic words! The server needs conditional headers like If-Match to prevent you from overwriting someone else's changes.
๐Ÿšฆ4294xxToo Many RequestsWhoa, slow down there! You're hitting refresh like there's a prize. Take a breather and try again later.
๐Ÿ“‹4314xxRequest Header Fields Too LargeTMI in the headers! You're sending so much metadata that the server's eyes glazed over. Trim those headers down!
โš–๏ธ4514xxUnavailable For Legal ReasonsThe lawyers said no. Named after Fahrenheit 451, this page has been legally blocked. Big Brother is watching!

4xx Client Error Status Codes FAQ

What is the difference between 401 and 403 status codes?

401 Unauthorized means authentication is required and has failed or not been provided. 403 Forbidden means the server understood the request but refuses to authorize it, even with valid credentials. Use 401 when login is needed, 403 when the user lacks permission.

What does 404 Not Found mean?

404 Not Found indicates that the server cannot find the requested resource. This could mean the URL is wrong, the resource was deleted, or it never existed. It's one of the most common HTTP errors users encounter.

When should I use 400 Bad Request?

Use 400 Bad Request when the server cannot process the request due to client error, such as malformed request syntax, invalid request parameters, or deceptive request routing. It's a general-purpose error for client-side issues in the request.