Error handling works + unit tests

The key was using the Flask-restful abort() function.