HTTP状态标头的语法

moo*_*moo 6 language-agnostic specifications http http-headers

编写HTTP状态标头的方法有很多种:

HTTP/1.1 404 Not Found
Status: 404
Status: 404 Not Found
Run Code Online (Sandbox Code Playgroud)

但哪个是语义正确且符合规范的方式?

编辑:通过状态标题我的意思是这样,使用诸如PHP的一个功能header().

moo*_*moo 1

我发现的最接近答案的是Fast CGI 规范,它规定通过 Status 和 Location 标头设置状态代码。