linux - PHP Downloadscript - Which HTTP-statuscode for maximum connections? -


i have programmed downloadscript in php, allows user download files server.

i have programmed, 2 connections per download available, works.

my question is, http-statuscode can/must send inform users downloadmanager maximum connections reached, when have 2 connections per download?

there no "maximum connections" code, either 429 or 503 you're looking for:

429 many requests

the 429 status code indicates user has sent many requests in given amount of time ("rate limiting").

the response representations should include details explaining condition, , may include retry-after header indicating how long wait before making new request.

10.5.4 503 service unavailable

the server unable handle request due temporary overloading or maintenance of server. implication temporary condition alleviated after delay. if known, length of delay may indicated in retry-after header. if no retry-after given, client should handle response 500 response.

note: existence of 503 status code not imply server must use when becoming overloaded. servers may wish refuse connection.

you can view codes in the spec plus this list of additional codes.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -