Status Code
↔ (standard) 3-digit HTTP Response code sent by Server
Source: www.iana.org/assignments/http
1XX
Info Status Code
2XX
Success Status Code
3XX
Redirect Status Code
4XX
Client Error Status Code
5XX
Server Error Status Code
res.status(code)
to set Status Code
References
1XX
↔ Info Status Code2XX
↔ Success Status Code3XX
↔ Redirect Status Code4XX
↔ Client Error Status Code5XX
↔ Server Error Status Coderes.status(code)
↔ to set Status Coderes.status()
↔ to set Status Code in HTTP Responseres.status(200).send("hello")
↔ to send 200 Status Code & message of"hello"
as HTTP Responseres.status(404).send("Page not found")
↔ to send 404 Status Code & message of"Page not found"
as HTTP Responsestart line
↔ HTTP version + Status Code + status message