- 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.
推薦閱讀
- FreeSWITCH 1.2
- 數字烏托邦
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- Building RESTful Web services with Go
- Learning Swift(Second Edition)
- 網絡環境中基于用戶視角的信息質量評價研究
- 高級網絡技術
- INSTANT LinkedIn Customization How-to
- TCP/IP基礎(第2版)
- Guide to NoSQL with Azure Cosmos DB
- 人際網絡
- 網絡空間作戰:機理與籌劃
- 路由與交換技術
- 巧學活用CISCO網絡典型配置
- LiveCode Mobile Development Beginner's Guide