Q
Q
Quber2013-12-05 11:28:31
PHP
Quber, 2013-12-05 11:28:31

What HTTP status code to issue for a temporary generated page?

For example, when a user added content to the site, I get a temporary generated "File added successfully" page. What HTTP status code should be sent in this case?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2013-12-05
@Quber

201 Created - A new resource was created as a result of a successful request. The server must indicate its location in the Location header. The server is also recommended to indicate the characteristics of the created resource in the header (for example, in the Content-Type field). If the server is not sure that the resource will actually exist by the time the client receives this message, then it is better to use a 202 response. Introduced in HTTP/1.0.

201

V
Vladimir Polishchuk, 2013-12-05
@NorthDakota

If the problem is only in the robots, then why not just forbid the robots to go to her through robots.txt?

D
Dmitry, 2013-12-05
@omun

It is curious to know, what did the usual 200 not please?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question