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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -