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.
So are strings. Wow, I'm having deja vu.I should have been more clear, you wouldn't use a literal hash. You'd use YAML or JSON or something.
error: type: Redirect permanent: 0