Exceptions

Custom errors you can expect.

exception savepagenow.exceptions.BadGateway

Bases: savepagenow.exceptions.WaybackRuntimeError

Raised when you receive a 502 bad gateway status code.

exception savepagenow.exceptions.BlockedByRobots

Bases: savepagenow.exceptions.WaybackRuntimeError

Raised when archive.org has been blocked by the site’s robots.txt.

exception savepagenow.exceptions.CachedPage

Bases: Exception

Raised when archive.org declines to make a new capture and instead returns the cached version of most recent archive.

exception savepagenow.exceptions.Forbidden

Bases: savepagenow.exceptions.WaybackRuntimeError

Raised when you receive a 403 forbidden status code.

exception savepagenow.exceptions.TooManyRequests

Bases: savepagenow.exceptions.WaybackRuntimeError

Raised when you have exceeded the throttle on request frequency.

exception savepagenow.exceptions.Unauthorized

Bases: savepagenow.exceptions.WaybackRuntimeError

Raised when you receive a 401 unauthorized status code.

exception savepagenow.exceptions.UnknownError

Bases: savepagenow.exceptions.WaybackRuntimeError

Raised when you receive a 520 unknown status code.

exception savepagenow.exceptions.WaybackRuntimeError

Bases: Exception

A generic error returned by the Wayback Machine.