Different Http Status code in rest api spring boot app ?

Veröffentlicht am: 11 Juli 2024
auf dem Kanal: Java Technology Learning
34
1

1xx: Informational
These codes indicate that the request was received and understood, and the client should continue the request or ignore it if it is already finished.

100 Continue: The initial part of a request has been received and has not yet been rejected by the server.
101 Switching Protocols: The server is switching protocols as requested by the client.
102 Processing: The server has received and is processing the request, but no response is available yet.
2xx: Success
These codes indicate that the action requested by the client was received, understood, accepted, and processed successfully.

200 OK: The request has succeeded. The meaning of the success depends on the HTTP method:
GET: The resource has been fetched and transmitted in the message body.
POST: The resource describing the result of the action is transmitted in the message body.
201 Created: The request has been fulfilled and has resulted in the creation of a new resource.
202 Accepted: The request has been accepted for processing, but the processing has not been completed.
203 Non-Authoritative Information: The request was successful but the information in the response is from a local or third-party copy.
204 No Content: The server successfully processed the request, but is not returning any content.
205 Reset Content: The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.
206 Partial Content: The server is delivering only part of the resource due to a range header sent by the client.
3xx: Redirection
These codes indicate that further action needs to be taken by the user agent to fulfill the request.

300 Multiple Choices: There are multiple options for the resource that the client may follow.
301 Moved Permanently: The resource has been moved permanently to a new URI.
302 Found: The resource has been temporarily moved to a different URI.
303 See Other: The response can be found under another URI using a GET method.
304 Not Modified: The resource has not been modified since the version specified by the request headers.
307 Temporary Redirect: The resource has been temporarily moved to a different URI and the client should use the original URI for future requests.
308 Permanent Redirect: The resource has been permanently moved to a different URI and the client should use the new URI for future requests.
4xx: Client Error
These codes indicate that the client seems to have made an error.

400 Bad Request: The server cannot or will not process the request due to a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
401 Unauthorized: The request requires user authentication.
402 Payment Required: Reserved for future use.
403 Forbidden: The server understood the request but refuses to authorize it.
404 Not Found: The server can't find the requested resource.
405 Method Not Allowed: The request method is not supported for the requested resource.
406 Not Acceptable: The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
407 Proxy Authentication Required: The client must first authenticate itself with the proxy.
408 Request Timeout: The server timed out waiting for the request.

5xx: Server Error
These codes indicate that the server failed to fulfill a valid request.

500 Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request.
501 Not Implemented: The server does not support the functionality required to fulfill the request.
502 Bad Gateway: The server received an invalid response from the upstream server.
503 Service Unavailable: The server is currently unable to handle the request due to temporary overloading or maintenance of the server.
504 Gateway Timeout: The server did not receive a timely response from the upstream server.
505 HTTP Version Not Supported: The server does not support the HTTP protocol version used in the request.


Auf dieser Seite können Sie das Online-Video Different Http Status code in rest api spring boot app ? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Java Technology Learning 11 Juli 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 34 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!