reference-status.rst 868 B

12345678910111213141516171819202122
  1. :py:attr:`status`
  2. =================
  3. The :abbr:`HTTP (Hypertext Transfer Protocol)` status code that was returned by
  4. the web server when the feed was fetched.
  5. If the feed was redirected from its original :abbr:`URL (Uniform Resource Locator)`,
  6. :py:attr:`status` will contain the redirect status code, not the final status
  7. code.
  8. If :py:attr:`status` is ``301``, the feed was permanently redirected to a new
  9. :abbr:`URL (Uniform Resource Locator)`. Clients should update their address
  10. book to request the new :abbr:`URL (Uniform Resource Locator)` from now on.
  11. If :py:attr:`status` is ``410``, the feed is gone. Clients should stop polling the
  12. feed.
  13. .. tip::
  14. :py:attr:`status` will only be present if the feed was retrieved from a web
  15. server. If the feed was parsed from a local file or from a string in memory,
  16. :py:attr:`status` will not be present.