auslib.web

auslib.web.public.base

auslib.web.public.base.apply_security_headers(response)
auslib.web.public.base.contributejson()
auslib.web.public.base.fourohfour(error)

We don’t return 404s in AUS. Instead, we return empty XML files

auslib.web.public.base.generic(error)

Deals with any unhandled exceptions. If the exception is not a BadDataError, it will be sent to Sentry, and a 400 will be returned, because BadDataErrors are considered to be the client’s fault. Otherwise, the error is just re-raised (which causes a 500).

auslib.web.public.base.robots()
auslib.web.public.base.set_cache_control()