[thelist] Status codes for "not ready yet"
Lee Kowalkowski
lee.kowalkowski at googlemail.com
Tue Feb 1 12:26:11 CST 2011
On 1 February 2011 04:00, Bill Moseley <moseley at hank.org> wrote:
> A client makes an ajax call to fetch some data. There are a number of
> different responses possible. I want to use HTTP status codes to represent
> each response type.
>
> 1. Data available and returned in response. HTTP status = 200
> 2. The data is not ready yet, check back later at this same URL.
> 3. The data will never be available (e.g. feature not implemented for
> your account).
> 4. The data cannot be returned (e.g. timed out trying to fetch data or
> some other kind of failure).
>
> What HTTP status codes would you suggest for the responses other than the
> first?
Looking at the list at http://en.wikipedia.org/wiki/List_of_HTTP_status_codes:
2. 202 Accepted
3. 403 Forbidden (for you) or 501 Not Implemented (for everyone)
4. 503 Service unavailable
Remember 4xx errors are for client problems, and 5xx are for server problems.
--
Lee
www.webdeavour.co.uk
More information about the thelist
mailing list