Handle errors

Currently, we are raising errors, but not handling how to respond when we get them.