Which HTTP status code means “Not Ready Yet, Try Again Later”? [closed]

I’m developing a RESTful API in which http://server/thingyapi/thingyblob/1234 returns the file (aka “blob”) associated with item #1234 to download. But the request could be made before the file has been generated. It definitely will be available at a later time.

There’s a batch process in the server that generates all the blobs. Item 1234 already exists and its data, other than the blob, is already available. The server just hasn’t generated 1234’s blob yet.

I don’t want to return 404; that’s for things that do not exist. This will exist, but hasn’t been generated yet. Kinda like a YouTube video that’s “processing.” I don’t think redirection codes would be proper either; there’s no “other” URL to try.

What’s the correct HTTP status code to return in such a case?

8 Answers
8

Leave a Comment