Internal error when teleporting to non-existing address

Summary

Unhandled HttpClientErrorException when teleporting to non-existing address

Steps to reproduce

/location foobarbaz

What is the current bug behavior?

An internal error occurred while attempting to perform this command

What is the expected correct behavior?

404 Not Found

Relevant logs and/or screenshots

[12:35:21] [Server thread/INFO]: ixilonolixi issued server command: /location foobarbaz
[12:35:21] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'location' in plugin openstreetcraft-location v0.1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:723) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1658) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1498) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:918) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:911) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:895) [core.jar:git-Spigot-a99063f-be6aaf0]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:828) [core.jar:git-Spigot-a99063f-be6aaf0]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: org.springframework.web.client.HttpClientErrorException: 404 Not Found
        at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) ~[?:?]
        at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) ~[?:?]
        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) ~[?:?]
        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:588) ~[?:?]
        at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:295) ~[?:?]
        at net.openstreetcraft.api.service.LocationService.getLocation(LocationService.java:65) ~[?:?]
        at de.ixilon.minecraft.plugin.location.LocationCommandExecutor.teleportToAddress(LocationCommandExecutor.java:114) ~[?:?]
        at de.ixilon.minecraft.plugin.location.LocationCommandExecutor.onCommand(LocationCommandExecutor.java:70) ~[?:?]
        at de.ixilon.bukkit.plugin.location.BukkitLocationCommandExecutor.onCommand(BukkitLocationCommandExecutor.java:37) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[core.jar:git-Spigot-a99063f-be6aaf0]
        ... 17 more

logs, and code as it's very hard to read otherwise.)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)