[wp-hackers] HTTP status code on "Release not found" at wp.org

Alex Günsche ag.ml2007 at zirona.com
Fri Mar 9 18:46:51 GMT 2007


this might be a question rather for the wp.org server admins, so I hope
it's ok to post it here. I don't really know where to refer to, and I
know that some of the responsible people read this list.

I'm building a plugin which among other things downloads a given WP
version from the URL http://wordpress.org/wordpress-XXX.zip using the
Snoopy class. This works fine so far; only if one downloads a version
that doesn't exist, it returns the string "Release not found. XXX" and
-- here comes my problem -- HTTP status code 200.

Of course, I could parse the string, but this is not very reliable. A
better method would be a proper status code, preferably 404. Would that
be possible?


Alex Günsche, Zirona OpenSource-Consulting
work: http://www.zirona.com/ | leisure: http://www.roggenrohl.net
PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc

More information about the wp-hackers mailing list