Handle HTTPS, fix failing test, handle 404s