HTTP 回傳值為 302, 404 ... 的時後, 代表的意思是什麼, 看看標準定義的內容最清楚囉~ 🙂
HTTP 1.1 標準定義: HTTP/1.1: Status Code Definitions
Mark Pilgrim(下述連結的作者名) 將上面定義的文字, 翻譯比較平民化(或算 趣味版?): REST for toddlers, 不過他的主題好像是要講 REST(我猜應該是要推說 REST 比 HTTP 簡單吧~).. XD
在文章最後一段話, 提到的一個連結, 裡面講述 各種不同風格的架構, 有空可以參考看看: Architectural Styles and the Design of Network-based Software Architectures
轉載自 Mark Pilgrim 文章最後一段:
It is important to remember that REST != HTTP, and status codes don’t tell the whole story. REST is an architectural style which revolves around The Four Verbs:
- Give it here,
- Here you go,
- Put that thing back where it came from or so help me, and
- Flush.