Just a note about 5xx (e.g 500) status codes, although they are server errors, they can be caused by client issues like bad input. However, when that is the case, a 500 status code suggests the server failed to handle that incorrect input. For example, say you require the user to input a number using a text field, on the server you use a function to cast it to a Number. If the user entered non-numeric content and the server failed to validate it / handle errors, it will usually send a 500 status code even if the client _could_ prevent it with correct input. Of course it still remains the duty of the server to validate that input, handle errors, and send 4xx status codes if the issue is simply malformed input.
By this time, I have seen your about ten videos on web development. They contain explanation simple to follow. Can you make a video on functional programming in JavaScript showing the basics and a few practicle examples? That will be of immense help to beginners. Thanks. 😃
This is a great little overview of common HTTP status errors. Today I ran into a weird one that I've never seen when logging in with correct credentials to my personal website: #412Error It says this "Your request got filtered out due to possible security issues." Huh? I'm wondering if this is a new implementation of the 412 (apparently it can have multiple explanations about what precondition is referring to). Could this be an issue where some new standard was implemented recently for security? Would love to see a video on this!
Really interesting, thank you for explaining it. You said on making rest APIs. I notice some kf those status codes are handled by express and nodejs already (500 when the database was down, but at least now I know what it means). So I don't have to make functions to send status codes and handle status codes when users navigate my site then? Is the simple check authentication enough to keep out those users, or should I send also a 403 forbidden instead of just redirecting them to the home page?
Enjoy Notes : 😀😀 Please Like it so that I will revise it again and again with new notification - 2xx The Request you made is Get request - 200 OK | success msg e.g Your get request is successful - 201 Created | Shows you created something e.g created item, created some resources - 204 No Content | no content to return e.g you deleted something but have nothing to return - 4xx Error from client/user side - 400 Bad Request | bad parameter sended e.g create new user so server want name & email but don’t send them email - 401 Unauthorized | I need a api key but you didn't send it or you need to be login for it | I don’t know who you are - 403 Forbidden | when basic user to access admin feature | I know who you are but cant access it so go away - 404 Not Found | you access part of info that does not exist 5xx Error from server side 500 Internel server error server broken or somenthing bad happened from server side
You're such an interesting youtuber... I think you don't have that muck skill of talking to the camera... but damn man! you explain everything so easy.... Keep on!
I had one query, let's say we hit the URL and the server is down so we will get the 5xx error code, right ? So my question here is if the server is down when who is sending us(the client) that error code ?
About status code of applications Browser is had HTTP status codes, however applications are not had Status codes in Japan. Why are not there? I want to know the reasons. I don't know whether the reason will be had by applications or OS not.
@@____prajwal____ I actually have a full course on React coming out on Tuesday. If you want to be notified when it releases you can sign up for the email list here: courses.webdevsimplified.com/learn-react-today You will also get an exclusive discount if you sign up through the email list.
If I try to get some resource by id (ex. Product) and it isn't in the database. Do I have to return code 200 with a message 'Product not found' ? Or there is another code to respond properly to this case?
is it better to use a 4xx status instead of 3xx status for invalid username/passwords? seems i should. what about 200 ok? why not that one? the request doesn't fail, it's not a server error, and nor is it a client error (the data sent may not succeed in a login, but the data isn't necessarily invalid), so for the moment, when users enter the wrong password, the site returns: status: 200 ok set-cookie: e=Access%20Denied; [....the rest here] location: /
It's best to be specific when designing REST API's or when you create a (web-)app which uses it due to it for one being easier to understand and for two it's somewhat easier implementable. Additionally, the webbrowser can do some more with it, which might be a nice side-effect.
Is it ok for developers (especially junior ones) to copy both the code and design and template of a portfolio website tutorial as long as they understand all the code and tutorial? I’ve had people tell me that I can’t do that and you should 100% code and design your own site from scratch fully on your own.
I think it is ok to take inspiration from another site but you should at least write out the code yourself even if it is very similar. It will really help with learning and understanding. Also your portfolio is supposed to be a showcase of your skills so if you copy someone else it doesn't really show your skills.
Web Dev Simplified Also right but I’m beyond that. I’ve gone beyond past HTML and CSS but I just don’t know how to design a good looking site from scratch on my own, that’s why I was asking you if it’s ok to copy a design or code from somewhere and change the content to my liking as long as I can still 100% understand and explain everything. I’ve also heard no one codes websites from scratch anymore either.
@@BoredBricks Sites are almost always coded from scratch for a portfolio. You can copy a design if you want, but just copying all the code is most likely going to not work very well and lead to a site that is very hard to maintain.
418 is the best response code, hands down.
be 410
🤣
but nowadays, chrome presents 418 as 500 :{
I was bummed this wasn’t mentioned. I used it at a previous job just for s&g’s
The "sir this is wendy's" if status codes
simple to follow and thorough. EXACTLY WHAT I NEEDED!
I was searching a lot of videos on it but seriously you have explained in a very perfect manner.. a big thanks to you..😀
Great instructor. I've searched on youtube to review API and and I've seen your video. I watched it and subscribed immediately.
Just a note about 5xx (e.g 500) status codes, although they are server errors, they can be caused by client issues like bad input. However, when that is the case, a 500 status code suggests the server failed to handle that incorrect input.
For example, say you require the user to input a number using a text field, on the server you use a function to cast it to a Number. If the user entered non-numeric content and the server failed to validate it / handle errors, it will usually send a 500 status code even if the client _could_ prevent it with correct input. Of course it still remains the duty of the server to validate that input, handle errors, and send 4xx status codes if the issue is simply malformed input.
Very easy to understand! You really know how to teach! Great tutorial!
thanks Kyle you are the best !!! this was best explanation that I've ever had in server-side in web development
Very well explained. Thank you!
i'm using sony wh1000-xm5 and i think u need to work on the auido , the video is good for sure
Like the calm and thorough explanation thanks!
Thanks bro this was simple and easy to understand
You have the answers to all my questions. Thank you.
Thanks for such simple explanation and the reference URL too!
Amazinggggggggggggggg !! Just what I needed. Thank you !!
By this time, I have seen your about ten videos on web development. They contain explanation simple to follow. Can you make a video on functional programming in JavaScript showing the basics and a few practicle examples? That will be of immense help to beginners. Thanks. 😃
I have a video on pure functions in javascript which is part of functional programming.
@@WebDevSimplified 1
1
loved the video, saved tons of my time
Thank you very much for this video :) It was very helpful and clear for me! :)
Thank you so much very clear and fast
But you forgot to explain about the 409 Conflit , Remaining explanation is awesome.
This is a great little overview of common HTTP status errors. Today I ran into a weird one that I've never seen when logging in with correct credentials to my personal website: #412Error It says this "Your request got filtered out due to possible security issues." Huh? I'm wondering if this is a new implementation of the 412 (apparently it can have multiple explanations about what precondition is referring to). Could this be an issue where some new standard was implemented recently for security? Would love to see a video on this!
you're the best man!
Thanks! good explanation.
Thank You Again for Sharing!!! :)
Thanks dude
thanks for the information
I'm a teapot is all you need to know
Thank you for the complete list link ☺️
thank you so much for this
You are really great
Awesome explanation. Thanks!
Thank you
amazing video
thaanks) this video is reeeally useful...
Excellent explanation.
Thanks for sharing such a valuable content buddy :)
Very clear, thanks a lot
Thanks for great explanation!
Thank you!
Good video. Well done.
Thanks
What do I should use when I want to update my side in the backend and the website will be online again in 1-2 hours? 200 or 503?
Thank you K .. ❣️
You're welcome!
420 Enhance Your Calm is a little hazy
Really interesting, thank you for explaining it. You said on making rest APIs. I notice some kf those status codes are handled by express and nodejs already (500 when the database was down, but at least now I know what it means).
So I don't have to make functions to send status codes and handle status codes when users navigate my site then? Is the simple check authentication enough to keep out those users, or should I send also a 403 forbidden instead of just redirecting them to the home page?
You can redirect them to the home page and that should be sufficient
Enjoy Notes : 😀😀 Please Like it so that I will revise it again and again with new notification
- 2xx
The Request you made is Get request
- 200 OK | success msg
e.g Your get request is successful
- 201 Created | Shows you created something
e.g created item, created some resources
- 204 No Content | no content to return
e.g you deleted something but have nothing to return
- 4xx
Error from client/user side
- 400 Bad Request | bad parameter sended
e.g create new user so server want name & email but don’t send them email
- 401 Unauthorized | I need a api key but you didn't send it or you need to be login for it | I don’t know who you are
- 403 Forbidden | when basic user to access admin feature | I know who you are but cant access it so go away
- 404 Not Found | you access part of info that does not exist
5xx
Error from server side
500 Internel server error
server broken or somenthing bad happened from server side
He's stares through your soul
Nice!
Good work!
it's goooooood !!!... 👌👌 ... also thanks for the site
You are very welcome.
we can given custom http status codes like
7,1000,15000,15010,519,1287,366,1442,1232,1233,17000 ?
You're such an interesting youtuber... I think you don't have that muck skill of talking to the camera... but damn man! you explain everything so easy.... Keep on!
Thanks. I am not a very high energy person so I am pretty monotone and boring when I speak, but I'm glad that doesn't bore you too much.
@@WebDevSimplifiedAbsolutely no! You're one of the most usefull youtubers someone can find. Keep on man!
Remember to use 405
I had one query, let's say we hit the URL and the server is down so we will get the 5xx error code, right ?
So my question here is if the server is down when who is sending us(the client) that error code ?
About status code of applications
Browser is had HTTP status codes, however applications are not had Status codes in Japan. Why are not there? I want to know the reasons. I don't know whether the reason will be had by applications or OS not.
Please make angular js tutorial
Your voice is same as the guy with channel "your daily dose of internet"
perfect :)
Can you please make a video that explains Angular entirely?
I first need to learn angular and it is pretty low on my list of things to learn right now.
@@WebDevSimplified React would be fine too!
@@____prajwal____ I actually have a full course on React coming out on Tuesday. If you want to be notified when it releases you can sign up for the email list here: courses.webdevsimplified.com/learn-react-today
You will also get an exclusive discount if you sign up through the email list.
❤️❤️❤️❤️
You never close your eyes
If I try to get some resource by id (ex. Product) and it isn't in the database. Do I have to return code 200 with a message 'Product not found' ? Or there is another code to respond properly to this case?
take a look on swagger example (on delete for example), I understood that in this case you have to return 404. The page is petstore.swagger.io/
will you ever blink
What is http/200 188 mean? I know the 200 is OK, but what is the trailing 188?
Hello! When i open an application, i get this error " unhandled http status code 0" do you how to fix this?
he dont even blink
Would you care to address the whole returning 200 with an error message debate?
How to solve error 506 varient also negotiates
You look like Shubhman Gill
is it better to use a 4xx status instead of 3xx status for invalid username/passwords? seems i should. what about 200 ok? why not that one? the request doesn't fail, it's not a server error, and nor is it a client error (the data sent may not succeed in a login, but the data isn't necessarily invalid), so for the moment, when users enter the wrong password, the site returns:
status: 200 ok
set-cookie: e=Access%20Denied; [....the rest here]
location: /
You should probably be returning a 403 status code since that means the users credentials are incorrect.
It's best to be specific when designing REST API's or when you create a (web-)app which uses it due to it for one being easier to understand and for two it's somewhat easier implementable.
Additionally, the webbrowser can do some more with it, which might be a nice side-effect.
He didn't blink
you missed 409
Oho
606?
Blink man blink!
hands on 420
My apartment number is 404 and my postman never finds it
Give me domain this status please bro 🙏 can I use for vpn
418
Is it ok for developers (especially junior ones) to copy both the code and design and template of a portfolio website tutorial as long as they understand all the code and tutorial? I’ve had people tell me that I can’t do that and you should 100% code and design your own site from scratch fully on your own.
I think it is ok to take inspiration from another site but you should at least write out the code yourself even if it is very similar. It will really help with learning and understanding. Also your portfolio is supposed to be a showcase of your skills so if you copy someone else it doesn't really show your skills.
Web Dev Simplified Right. I also don’t want to end up “re-inventing the wheel” either.
@@BoredBricks re-inventing the wheel is ok to an extent when you are learning. It is a great way to learn.
Web Dev Simplified Also right but I’m beyond that. I’ve gone beyond past HTML and CSS but I just don’t know how to design a good looking site from scratch on my own, that’s why I was asking you if it’s ok to copy a design or code from somewhere and change the content to my liking as long as I can still 100% understand and explain everything. I’ve also heard no one codes websites from scratch anymore either.
@@BoredBricks Sites are almost always coded from scratch for a portfolio. You can copy a design if you want, but just copying all the code is most likely going to not work very well and lead to a site that is very hard to maintain.
500 error ah remind me of Facebook
why you didn't blink once 😭😭
1st viewer
I strongly suggest you should consider blinking sometimes.
403: I know who you are but you cannot access this information. So go away!
another payment related status code... 419 You Got Scammed ???
x1.25 at the beginning
Damn, you are gorgeous.