API handles invalid urls correctly [MJ-212]