这个响应在说什么

👁️ 2 人浏览 💬 0 人评论 ❤️ 添加收藏

请求一个需要登录的接口:

返回的状态码是多少?

$ curl -si http://localhost:8080/need-auth | head -6
HTTP/1.1 401 Unauthorized
Server: nginx/1.24.0
Date: Thu, 05 Mar 2026 02:00:00 GMT
Content-Type: application/octet-stream
Content-Length: 24
Connection: keep-alive
提交你的答案
请登录后提交答案。
去登录
代码编辑器
Ctrl + Enter 运行
本次输入:
输出:

                        
👩‍🏫
AI
💬 题目评论

全部评论