Code Name SOAP Fault Description 200
Code Name SOAP Fault Description 200
It indicates that the REST API successfully carried out whatever action the
200 OK /Success Server client requested, and that no more specific code in the 2xx series is
appropriate.
A REST API responds with the 201 status code whenever a resource is
created inside a collection. There may also be times when a new resource
is created as a result of some controller action, in which case 201 would
201 Created Server also be an appropriate response.
The newly created resource can be referenced by the URI(s) returned in
the entity of the response, with the most specific URI for the resource
given by a Location header field.
A 202 response is typically used for actions that take a long while to
202 Accepted Server process. It indicates that the request has been accepted for processing, but
the processing has not been completed. The request might or might not be
eventually acted upon, or even maybe disallowed when processing occurs.
The 204 status code is usually sent out in response to a PUT, POST, or
DELETE request when the REST API declines to send back any status
message or representation in the response message’s body.
204 No Content Server
An API may also send 204 in conjunction with a GET request to indicate
that the requested resource exists, but has no state representation to
include in the body.
The HTTP 300 Multiple Choices redirect status response code indicates
300 Multiple Choices Server that the request has more than one possible responses. The user-agent or
the user should choose one of them. As there is no standardized way of
choosing one of the responses, this response code is very rarely used.
If the server has a preferred choice, it should generate a Location header.
The requested page has been permanently moved. The server
automatically redirects the request to the new location.
The 301 status code indicates that the REST API’s resource model has been
Moved
301 Server significantly redesigned and a new permanent URI has been assigned to
permanently
the client’s requested resource. The REST API should specify the new URI
in the response’s Location header and all future requests should be
directed to the given URI.
The server has decided, based on information in the request, that the
304 Not Modified Server requested data has not been modified since the last request and so it does
not need to be sent again.
The requested page has been moved, but this change may not be
Temporary
307 Server permanent. The server automatically redirects the request to the new
Redirect
location.
The named database is not running on the server, or the named web
Client.NotF
404 Not Found service does not exist. The 404 error status code indicates that the REST
ound
API can’t map the client’s URI to a resource but may be available in the
future. Subsequent requests by the client are permissible.
The maximum connection idle time was exceeded while receiving the
request. The HyperText Transfer Protocol (HTTP) 408 Request Timeout
response status code means that the server would like to shut down this
unused connection. It is sent on an idle connection by some servers, even
without any previous request by the client.
Server.Requ
408 Request Timeout A server should send the "close" Connection header field in the response,
estTimeout
since 408 implies that the server has decided to close the connection
rather than continue waiting.
This response is used much more since some browsers, like Chrome,
Firefox 27+, and IE9, use HTTP pre-connection mechanisms to speed up
surfing.
An internal error occurred. The request could not be processed. 500 is the
generic REST API error response. Most web frameworks automatically
respond with this response status code whenever they execute some
Internal Server request handler code that raises an exception.
500 Server
Error A 500 error is never the client’s fault and therefore it is reasonable for the
client to retry the exact same request that triggered this response, and
hope to get a different response.
API response is the generic error message, given when an unexpected
condition was encountered and no more specific message is suitable.
The HTTP request method is not GET, HEAD, or POST. The server either
Not does not recognize the request method, or it lacks the ability to fulfill the
501 Server
Implemented request. Usually, this implies future availability (e.g., a new feature of a
web-service API).
The document requested resides on a third-party server and the server
received an error from the third-party server. The HyperText Transfer
502 Bad Gateway Server Protocol (HTTP) 502 Bad Gateway server error response code indicates
that the server, while acting as a gateway or proxy, received an invalid
response from the upstream server.