测试面试题1-HTTP常见的状态码有哪些?

常见的状态码如下所示:

  • 2xx 成功:200 OK(请求成功)、201 Created(已创建)、204 No Content(无内容)
  • 3xx 重定向:301 Moved Permanently(永久重定向)、302 Found(临时重定向)、304 Not Modified(未修改)
  • 4xx 客户端错误:400 Bad Request(错误的请求)、401 Unauthorized(未授权)、403 Forbidden(禁止访问)、404 Not Found(未找到)、429 Too Many Requests(请求过多)
  • 5xx 服务器错误:500 Internal Server Error(服务器内部错误)、502 Bad Gateway(网关错误)、503 Service Unavailable(服务不可用)、504 Gateway Timeout(网关超时)
posted @ 2024-02-19 22:26  阿苏聊测试开发  阅读(25)  评论(0编辑  收藏  举报