HTTP response status

The status code is a 3-digit number:

  • 1xx (Informational): Request received, server is continuing the process.
  • 2xx (Success): The request was successfully received, understood, accepted and serviced.
  • 3xx (Redirection): Further action must be taken in order to complete the request.
  • 4xx (Client Error): The request contains bad syntax or cannot be understood.
  • 5xx (Server Error): The server failed to fulfill an apparently valid request.

Some commonly encountered status codes are:

  • 100 Continue: The server received the request and in the process of giving the response.
  • 200 OK: The request is fulfilled.
  • 301 Move Permanently: The resource requested for has been permanently moved to a new location. The URL of the new location is given in the response header called Location. The client should issue a new request to the new location. Application should update all references to this new location.
  • 302 Found & Redirect (or Move Temporarily): Same as 301, but the new location is temporarily in nature. The client should issue a new request, but applications need not update the references.
  • 304 Not Modified: In response to the If-Modified-Since conditional GET request, the server notifies that the resource requested has not been modified.
  • 400 Bad Request: Server could not interpret or understand the request, probably syntax error in the request message.
  • 401 Authentication Required: The requested resource is protected, and require client’s credential (username/password). The client should re-submit the request with his credential (username/password).
  • 403 Forbidden: Server refuses to supply the resource, regardless of identity of client.
  • 404 Not Found: The requested resource cannot be found in the server.
  • 405 Method Not Allowed: The request method used, e.g., POST, PUT, DELETE, is a valid method. However, the server does not allow that method for the resource requested.
  • 408 Request Timeout:
  • 414 Request URI too Large:
  • 500 Internal Server Error: Server is confused, often caused by an error in the server-side program responding to the request.
  • 501 Method Not Implemented: The request method used is invalid (could be caused by a typing error, e.g., "GET" misspell as "Get").
  • 502 Bad Gateway: Proxy or Gateway indicates that it receives a bad response from the upstream server.
  • 503 Service Unavailable: Server cannot response due to overloading or maintenance. The client can try again later.
  • 504 Gateway Timeout: Proxy or Gateway indicates that it receives a timeout from an upstream server.

原文地址:https://www.cnblogs.com/ellie-test/p/11672592.html

时间: 2024-10-13 16:31:17

HTTP response status的相关文章

FastDFS response status 17 != 0

monitor /etc/fdfs/client.conf 发现有一台服务器offline,再重启启动不起来. 查看日志发现 response status 17 != 0 发现是/data/fastdfs/data/sync/ip+23000.mark 文件不能读, 于是备份,删除重新启动storage,等大量的同步后,可以正常使用.

fastdfsV5.0.5 服务端storage报错 response status 17 != 0

您好!我再使用fastdfsV5.0.5版本服务器在报错: ERROR - file: tracker_proto.c, line: 48, server: 127.0.0.1:23000, response status 17 != 0 请问是什么原因引起的呢? 我使用客户端版本是fastdfs_client_java._v1.25

PUT 文件 returned a response status of 403 Forbidden

简单来说:文件服务器缺少允许文件读写的配置,直接跳到本帖下面web.xml文件部分,添加配置信息即可解决! 使用springmvc 跨服务器进行文件上传时出现错误: jersey 上传文件报错出现returned a response status of 403 Forbidden 或returned a response status of 409 Conflict 409错误一般为文件服务器存放文件的目录结构不完整,找不到路径,需要自己进行目录结构完善和补全,即可排查错误. 403错误如下:

robot framework——httplibrary.http接口自动化库 ——get response status关键字——获取http请求返回的状态码

get response status关键字——获取http请求返回的状态码. ======================================================= 示例:获取百度搜索soapui返回的http状态码 create  http  context www.baidu.com/ scheme=https get /s?wd=soapui&pn=10&oq=soapui&tn=50000021_hao_pg&ie=utf-8&rs

ajax response status list [转载]

比较理想的解释方法应该以"状态:任务(目标)+过程+表现(或特征)"的表达模式来对这几个状态进行定义 [全文] 在<Pragmatic Ajax A Web 2.0 Primer >中偶然看到对readyStae状态的介绍,感觉这个介绍很实在,摘译如下: 0: (Uninitialized) the send( ) method has not yet been invoked.  1: (Loading) the send( ) method has been invok

Tomcat上传文件报错:returned a response status of 403 Forbidden

出现这样的错误是没有权限对服务器进行写操作.需要在这个项目所在的tomcat中配置可写操作即可: 在tomcat的web.xml添加下面代码: <init-param> <param-name>readonly</param-name> <param-value>false</param-value> </init-param>

RobotFramework下的http接口自动化Follow Response关键字的使用

Follow Response 关键字用于处理http中的重定向请求,常见的http 重定向请求包含http code为301和302 两种重定向请求,代表着某个URL地址发生了转移. http code 说明 301 redirect: 301 代表永久性转移(Permanently Moved). 302 redirect: 302 代表暂时性转移(Temporarily Moved ). 示例1:调用博客园(http://www.cnblogs.com/)的认证接口(https://pas

Response.AddHeader使用实例

Response.AddHeader使用实例 1.文件下载,指定默认名 Response.AddHeader("content-type","application/x-msdownload"); // 限制类型 Response.AddHeader("Content-Disposition","attachment;filename=文件名称.rar");// 下载后的文件名称 2.刷新页面 Response.AddHead

asp.net内置对象 Response对象使用介绍

Response对象是HttpRespone类的一个实例.该类主要是封装来自ASP.NET操作的HTTP相应信息.Response对象将数据作为请求的结果从服务器发送到客户浏览器中,并提供有关响应的消息.它可用来在页面中输出数据,在页面中跳转,还可以传递各个页面的参数. 一.向页面中输出数据 Response对象通过Write方法或WriteFile方法在页面输出数据,输出的对象可以是字符,字符串,字符数组,对象或文件. 用Response输出数据时,ASP.NET最重要的语法是:Respons