Recall & Review
beginner
What is the purpose of the
Retry-After header in HTTP?The
Retry-After header tells the client how long to wait before making another request. It helps manage server load and avoid repeated requests during downtime or rate limiting.Click to reveal answer
beginner
What are the two formats allowed for the
Retry-After header value?The
Retry-After header value can be either:<br>1. A number representing seconds to wait.<br>2. An HTTP-date indicating the exact time after which to retry.Click to reveal answer
beginner
When is the
Retry-After header typically used in HTTP responses?It is commonly used with status codes
429 Too Many Requests and 503 Service Unavailable to tell clients when to retry their requests.Click to reveal answer
beginner
Example: What does this header mean?<br>
Retry-After: 120It means the client should wait 120 seconds (2 minutes) before retrying the request.
Click to reveal answer
beginner
Example: What does this header mean?<br>
Retry-After: Wed, 21 Oct 2024 07:28:00 GMTIt means the client should wait until the date and time
Wed, 21 Oct 2024 07:28:00 GMT before retrying the request.Click to reveal answer
What does the
Retry-After header tell the client?✗ Incorrect
The
Retry-After header tells the client how long to wait before retrying the request.Which HTTP status code commonly uses the
Retry-After header?✗ Incorrect
The
Retry-After header is commonly used with 429 Too Many Requests to tell clients when to retry.Which of these is NOT a valid format for the
Retry-After header value?✗ Incorrect
The
Retry-After header value must be seconds or a date, not a URL.If a server responds with
Retry-After: 60, what should the client do?✗ Incorrect
The client should wait 60 seconds before retrying the request.
The
Retry-After header helps to:✗ Incorrect
It helps reduce server overload by telling clients when to retry.
Explain what the
Retry-After header is and when it is used.Think about how servers tell clients to pause before retrying.
You got /3 concepts.
Describe the two formats allowed for the
Retry-After header value and give an example of each.One is a number, the other is a date string.
You got /4 concepts.