On 3/7/07, Andy Armstrong <[EMAIL PROTECTED]> wrote:
On 7 Mar 2007, at 18:18, demerphq wrote:
>> If you want to say "Temporary Redirect" don't say "307" say
>> "Temporary
>> Redirect"!  If you want to put lots of information into one value,
>> like
>> categorization, use a hash!  { type => "Redirect", permanent => 0 }
>
> Numeric response codes have the advantage that they are language
> agnostic.

Indeed. That doesn't mean we have to coerce our status information to
map onto HTTP response codes though or even that we have to use a
numeric scheme.

Personally I see this is as a wheel-reinvention issue. Reusing the
HTTP response code seems to me to be a logical and natural step. As a
framework it strikes me that you will be unlikely to come up with
something truely better, so why not just reuse it and not worry about
it?

So far the objections we have are:

1) It uses numeric error codes and not english ones.
2) It wasnt custom designed for test responses.

Neither to me to be a very convincing reason to redesign something as
well thought out as the HTTP response code schema. With it you have a
well documented, well designed language agnostic response structure.
It seems to me youd have to work hard to come up with something
better.

Anyway, just my $0.02

cheers,
Yves




--
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to