from typing import Mapping, TypedDict


class Response(TypedDict):
    body: str
    isBase64Encoded: bool
    statusCode: int
    headers: Mapping[str, str]


def create_response(
    body: str,
    content_type: str,
    is_base64: bool = False,
    status_code: int = 200,
) -> Response:

    return {
        "body": body,
        "isBase64Encoded": is_base64,
        "statusCode": status_code,
        "headers": {"Content-Type": content_type},
    }
