Raises errors when asking for bad ref or file from an endpoint
Todo list for myself