Loading ...
Sorry, an error occurred while loading the content.

9669Re: [rest-discuss] 30x Status codes

Expand Messages
  • Julian Reschke
    Oct 2, 2007
      Brandon Carlson wrote:
      >
      >
      > All,
      >
      > I seem to have lost rational thought at moment and would like some
      > advice.
      >
      > Let's assume a RESTful weather service with the URIs looking
      > something like this:
      >
      > # Daily forecast
      > forecast/2007/ 10/02
      >
      > # Today's forecast
      > forecast/today
      >
      > I would expect the URI for today's forecast to redirect to the
      > forecast for today's date. My question is which redirect to use. My
      > first thought is that I would use a 301, but then, the more I
      > thought about it I think a 302/307 is the correct choice.
      >
      > What does the group think?
      >
      > Thanks!
      > Brandon

      It's a temporary redirect, so 307 would be correct.

      However, where's the point in forcing the redirect at all?

      Best regards, Julian
    • Show all 15 messages in this topic