Http status code managed by which part of web? -


while studying web programming, wondering http status code come web (like apache), (like tomcat), or database server (like mysql).

for example 4xx http status codes client side error , 5xx status codes server side errors. 2 http status codes come web? or web application server?

since http protocol only relevant , handled http server status codes create , sent component.

in contrast database server example has no idea http status code is. has nothing protocol layer.

you can tell http server send specific http status application logic , done. rest apis example rely on that. example php script uses header() function. delegates specific code http server handles communication.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -