Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i am working on an HTTP server which is supposed to only allow a certain amount of connections per user. How do I gracefully tell the user that more than n connections are not permitted. I tried answering the (n+1)th request with a 403 but apparently that kills the whole download. (At least with Down them All)

share|improve this question

3 Answers

up vote 3 down vote accepted

429: Too Many Requests

seems to be the one.

share|improve this answer

Wikipedia lists a few possibilities:

503 Service Unavailable

The server is currently unavailable (because it is overloaded or down for maintenance).[2] Generally, this is a temporary state.

509 Bandwidth Limit Exceeded (Apache bw/limited extension)

This status code, while used by many servers, is not specified in any RFCs.


For FTP:

450 Requested file action not taken. File unavailable (e.g., file busy).

share|improve this answer

10068 for FTP and 403.9 for HTTP

share|improve this answer
Are those specific to IIS? What about Apache, et al? – Dennis Williamson Feb 9 '11 at 21:05
Those are universal FTP and HTTP status codes respectively. – Jacob Feb 9 '11 at 21:12
can you point me to any RFC where this is specified? – niklasfi Feb 9 '11 at 21:20
1  
I only see IIS mentioned with regard to decimal 403 codes. – Dennis Williamson Feb 9 '11 at 21:54
1  
10068 is not a valid status code in FTP. – grawity Feb 10 '11 at 6:05
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.