The new URI is not a substitute reference for the originally requested resource. Content is available under these licenses. IETF. It is perfectly OK for this to get a HTTP 200, in fact (IMHO) this would be the ONLY valid HTTP status code. –geert3 Jan 14 '15 at 8:48 2 this contact form
For up-to-date details on the HTTP specification, see the latest HTTP/1.1 drafts Status codes The values of the numeric status code to HTTP requests are as follows. The implication is that this is a temporary condition which maybe alleviated at other times. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable. 10.4.6 405 Method The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. http://stackoverflow.com/questions/27921537/returning-http-200-ok-with-error-within-response-body
Http Response Example
RFC 2774. Wikipedia This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), If you can tell them apart, then you will be able to control your Web server with a higher degree of accuracy and effectiveness. These messages include the standard 404 error message Check Up Down.
Server cannot satisfy a request if bandwidth limit is exceeded (509) or there was a network read timeout (598).
HTTP, FTP, LDAP) or some other auxiliary server (e.g.
Intended to prevent "the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the
The set presented MAY be a subset or superset of the original version. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message. This response is cacheable unless indicated otherwise. Http 422 In a POST request the response will contain an entity describing or containing the result of the action.
This response is cacheable unless indicated otherwise. Http Status Codes Cheat Sheet Is it mandatory to define transitions on every possible alphabet in Deterministic Finite Automata? httpstatus. Since HTTP/1.1 304 Not Modified If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this
The response MUST NOT include an entity. Http 404 General status code. The range header is used by tools like wget to enable resuming of interrupted downloads, or split a download into multiple simultaneous streams. 207 Multi-Status (WebDAV) The 207 (Multi-Status) status code Stack Overflow.
Http Status Codes Cheat Sheet
It is intended for cases where another process or server handles the request, or for batch processing. 203 Non-Authoritative Information This response code means returned meta-information set is not exact set http://stackoverflow.com/questions/27921537/returning-http-200-ok-with-error-within-response-body See RFC 7231, section 6: "The status-code element is a three-digit integer code giving the result of the attempt to understand and satisfy the request", "satisfy" being a successful processing of Http Response Example Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Http Code 302 This error is given when Windows Parental Controls are turned on and are blocking access to the given webpage. 451 Unavailable For Legal Reasons Wikipedia Intended to be used when resource
For instance, a POST request must be repeated using another POST request. 308 Permanent Redirect (experiemental) Wikipedia The request, and all future requests should be repeated using another URI. 307 and weblink Stack Overflow. Is voluntarily revealing a card from your hand considered proposing? Used for conditional GET calls to reduce band-width usage. Http Code 403
The client SHOULD NOT repeat the request without modifications. This code is introduced to log the case when the connection is closed by client while HTTP server is processing its request, making server unable to send the HTTP header back. Wikipedia The requested resource could not be found but may be available again in the future. navigate here If the server has a preferred choice of representation, it SHOULD include the specific URI for that representation in the Location field; user agents MAY use the Location field value for
Wikipedia The server was acting as a gateway or proxy and received an invalid response from the upstream server. 503 Service Unavailable The server is currently unable to handle the request Http 502 The body may be preceded by the following additional fields as listed. Responses using this status code SHOULD explain how to resubmit the request successfully.
The different URI SHOULD be given by the Location field in the response. Wikipedia The request was a legal request, but the server is refusing to respond to it. Often the result of too much data being encoded as a query-string of a GET request, in which case it should be converted to a POST request. Called "Request-URI Too Long" Http Error Wordpress GetStatusCode.
According to HTTP specifications: "The client did not produce a request within the time that the server was prepared to wait. The server is indicating that it is unable or unwilling to complete the request using the same major version as the client, as described in section 3.1, other than with this This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource. http://domcached.com/http-code/http-error-509.html If something goes wrong while processing GET, the right status code is 4xx ("you messed up") or 5xx ("I messed up").
HTTP access authentication is explained in "HTTP Authentication: Basic and Digest Access Authentication". Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time against which to compare. JSEND) are not used and nothing is in the body (e.g. Retrieved November 11, 2015. ^ Sigler, Chris. "416 Requested Range Not Satisfiable".
This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time before the recovery of the service.