Readding Try/Except Blocks to standarize error responses