CLN: more cleaning add exceptions
CLN/API: unify the API
CLN/ENH: clean up testing and use HTTPException in the error classes
TST: check for specific objects