- Building RESTful Web services with Go
- Naren Yellavula
- 140字
- 2021-07-02 20:14:03
4xx family (client error)
These are the standard error status codes which the client needs to interpret and handle further actions. These have nothing to do with the server. A wrong request format or ill-formed REST method can cause these errors. Of these, the most frequent status codes API developers use are 400, 401, 403, 404, and 405:
- 400 (Bad Request) is returned when the server cannot understand the client request.
- 401 (Unauthorized) is returned when the client is not sending the authorization information in the header.
- 403 (Forbidden) is returned when the client has no access to a certain type of resources.
- 404 (Not Found) is returned when the client request is on a resource that is nonexisting.
- 405 (Method Not Allowed) is returned if the server bans a few methods on resources. GET and HEAD are exceptions.
推薦閱讀
- SEO 20日
- 面向云平臺(tái)的物聯(lián)網(wǎng)多源異構(gòu)信息融合方法
- 6G新技術(shù) 新網(wǎng)絡(luò) 新通信
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- Hands-On Bitcoin Programming with Python
- Enterprise ApplicationDevelopment with Ext JSand Spring
- 物聯(lián)網(wǎng)
- 物聯(lián)網(wǎng)與智慧廣電
- OSPF協(xié)議原理與功能拓展
- 現(xiàn)場(chǎng)總線與工業(yè)以太網(wǎng)及其應(yīng)用技術(shù)(第2版)
- XSS跨站腳本攻擊剖析與防御
- 賽博空間簡(jiǎn)史
- 夢(mèng)工廠之沸騰關(guān)鍵幀:Maya動(dòng)畫手冊(cè)
- 網(wǎng)絡(luò)編碼應(yīng)用
- 一板成功:高速電路研發(fā)與設(shè)計(jì)典型故障案例解析