Server not responding?

So I’m trying to learn Ionic and I’m following this tutorial: https://www.youtube.com/watch?v=ilM8YorL_jI.
I’ve gotten to the 28-minute point, where a service is set to getting run for the second time. Then I noticed that I got a 404 error saying that the server is not responding. Nothing to note in the terminal, but only in the browser console. I stop getting the error when I remove the part of my code calling this service:

import {Injectable} from '@angular/core';
import {Http} from '@angular/http';
import 'rxjs/Rx';

@Injectable()
export class RedditService{
    http: any;
    baseUrl: string;

    constructor(http:Http){
        this.http = http;
        this.baseUrl = 'https://www.reddit.com/r';
    }

    getPosts(subreddit, limit){
        return this.http.get(this.baseUrl+'/'+subreddit+'/top.json?limit='+limit)
            .map(res => res.json());
    }
}

Here’s the log from safari(I know I should probably switch to Chrome for this):

[Log] Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode. (main.js, line 2362)
[Warning] Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator (main.js, line 367)
[Warning] Native: tried calling Splashscreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator (main.js, line 367)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (self, line 0)

Any idea what to do? I’ve checked multiple times if I’ve written something wrong, but It sure doesn’t seems like it. Thanks in advance!