def catch_all(path):
    """Catch all path - return a JSON 404 """
    return (dict(error='Invalid URL: /{}'.format(path),
                 links=dict(root='{}{}'.format(request.url_root, PREFIX[1:]))),
            HTTPStatus.NOT_FOUND)
Catch all path - return a JSON 404