def handle_server_error(e): print('Internal Error:', e) return {'error': True, 'code': 500, 'message': 'Internal Server Error :('}, 500