Home Common Problem What are the common http status codes?

What are the common http status codes?

Oct 12, 2023 pm 04:20 PM
http http status code status code

Common http status codes include 100, 200, 201, 204, 301, 302, 304, 400, 401, 404, 500, 503, etc. Detailed introduction: 1. 100, the server has received part of the request, and the client should continue to send the remaining request; 2. 200, the request is successful, the server has successfully processed the request; 3. 201, the request has been successfully processed, and A new resource is created on the server; 4, 204, the server successfully processed the request, but did not return anything, etc.

What are the common http status codes?

The operating system for this tutorial: Windows 10 system, DELL G3 computer.

HTTP status code refers to a three-digit code in the HTTP protocol used to indicate the server's processing result of the request. They are divided into five categories, namely 1xx, 2xx, 3xx, 4xx and 5xx. Some common HTTP status codes are introduced below.

1. 1xx (informational status code): These status codes indicate that the request has been received and processing continues.

- 100 (Continue): The server has received part of the request and the client should continue sending the remaining request.

2. 2xx (success status code): These status codes indicate that the request has been successfully received, understood, and processed by the server.

- 200 (OK): The request was successful and the server has successfully processed the request.

- 201 (Created): The request has been successfully processed and a new resource was created on the server.

- 204 (No Content): The server successfully processed the request but did not return any content.

3. 3xx (Redirect status code): These status codes indicate that further action from the client is required to complete the request.

- 301 (Moved Permanently): The requested resource has been permanently moved to a new location.

- 302 (Found): The requested resource has been temporarily moved to a new location.

- 304 (Not Modified): The client can use the cached version without re-fetching the resource from the server.

4. 4xx (client error status code): These status codes indicate that the request sent by the client has an error.

- 400 (Bad Request): The server cannot understand the syntax of the request.

- 401 (Unauthorized): The request requires user authentication.

- 404 (Not Found): The server cannot find the requested resource.

5. 5xx (Server Error Status Code): These status codes indicate that an internal error occurred while the server was processing the request.

- 500 (Internal Server Error): The server encountered an unexpected error.

- 503 (Service Unavailable): The server is temporarily unable to process the request and may return to normal after a period of time.

These are some common representative status codes in HTTP status codes. Through these status codes, the client can understand the server's processing results of the request and handle it accordingly. During development and debugging, it is very helpful to understand these status codes

The above is the detailed content of What are the common http status codes?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Revealing the causes of HTTP status code 460 Revealing the causes of HTTP status code 460 Feb 19, 2024 pm 08:30 PM

Revealing the causes of HTTP status code 460

A deep dive into the meaning and usage of HTTP status code 460 A deep dive into the meaning and usage of HTTP status code 460 Feb 18, 2024 pm 08:29 PM

A deep dive into the meaning and usage of HTTP status code 460

Analyze the causes and solutions of HTTP status code 460 Analyze the causes and solutions of HTTP status code 460 Feb 20, 2024 pm 02:03 PM

Analyze the causes and solutions of HTTP status code 460

Introduction to HTTP 525 status code: explore its definition and application Introduction to HTTP 525 status code: explore its definition and application Feb 18, 2024 pm 10:12 PM

Introduction to HTTP 525 status code: explore its definition and application

An in-depth analysis of HTTP status code 550: Bad email address An in-depth analysis of HTTP status code 550: Bad email address Feb 18, 2024 pm 01:44 PM

An in-depth analysis of HTTP status code 550: Bad email address

Troubleshooting the causes and solutions for HTTP status code 550 Troubleshooting the causes and solutions for HTTP status code 550 Feb 20, 2024 am 09:49 AM

Troubleshooting the causes and solutions for HTTP status code 550

Understand common application scenarios of web page redirection and understand the HTTP 301 status code Understand common application scenarios of web page redirection and understand the HTTP 301 status code Feb 18, 2024 pm 08:41 PM

Understand common application scenarios of web page redirection and understand the HTTP 301 status code

Analysis of the meaning of HTTP status code 460 Analysis of the meaning of HTTP status code 460 Feb 24, 2024 pm 03:51 PM

Analysis of the meaning of HTTP status code 460