刚才在查看 HTTP 所有状态列表。发现 418 是个彩蛋:“ I'm a teapot".
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
|
xfspaceOct 30, 2015
1
server {
listen 80; return 418; } |
|
2
@xfspace 如果是访问别人的网站呢。
|
|
cloverstdOct 30, 2015
3
HTTP 状态码可以随便你怎么返回给客户端
|
|
xfspaceOct 30, 2015
4
@MarioLuisGarcia 你在逗我吗。
|
|
Slienc7Oct 30, 2015
5
@MarioLuisGarcia “ and is not expected to be implemented by actual HTTP servers. ”
|
|
6
|
|
7
@xfspace choury 在 6 楼给出了一个应用。
|