Only throw exceptions internally
Custom error handler to act as fail_json() for all errors/exceptions