Added more Exception handling for functions

Updated listalljson function to check for data to be = to HTTPException
if caught.