from flask import Blueprint, Response

# Exceptions can be set here
main_exception_bp = Blueprint("main_errors", __name__)

@main_exception_bp.app_errorhandler(Exception)
def server_error(error):
    return Response("Internal server error", status=500)

from flask import Blueprint, Response

# Exceptions can be set here
main_exception_bp = Blueprint("main_errors", __name__)

@main_exception_bp.app_errorhandler(Exception)
def server_error(error):
    return Response("Internal server error", status=500)

# Exceptions can be set here