@wachterjohannes Sorry, maybe my comment was misleading. A own exception is fine, but I would choose another name: ResourceLocatorNotFoundException (also the server must respond with a 404 not found)