python做web的问题,两个函数没有明白

这个是hello.py的内容

 def application(environ,start_response):
    start_response('200 ok',[('Content-Type','text/html')])#我不明白start_resopnse()是做什么的?200 ok是一个什么类型?
    return '<h1>Hello,web!</h1>'

这个是server.py的内容:

 from wsgiref.simple_server import  make_server
from hello import application
httpd = make_server('',8000,application)#make_server是什么函数?
print('serving http on port 8000')
httpd.serve_forever()

劳烦各位老师指点一下,谢谢.

http协议定义的状态码
200就是成功返回网页
301 302是跳转
40x是url错误,其中404是最著名的,这个程序员如果不知道该打
50x是服务器内部错误

网上搜索一下就有了,何必问
http://www.tuicool.com/articles/aYBRBz