def exception_log_and_respond(exception, logger, message, status_code):
logger.error(message, exc_info=True)<EOL>return make_response(<EOL>message,<EOL>status_code,<EOL>dict(exception_type=type(exception).__name__, exception_message=str(exception)),<EOL>)<EOL>
Log an error and send jsonified respond.