
"""
mindbodypublicapi

This file was automatically generated by APIMATIC v3.0 (
 https://www.apimatic.io ).
"""

from apimatic_core.http.response.http_response import HttpResponse as CoreHttpResponse


class HttpResponse(CoreHttpResponse):
    """
    Represent an HTTP response returned by the server.

    Stores response metadata such as status code, reason phrase, headers, and
     the raw response body, along with the originating request.

    Attributes:
        status_code (int): The HTTP status code returned by the server.
        reason_phrase (str): The reason phrase associated with the status code.
        headers (dict[str, str]): Response headers as key-value pairs.
        text (str): The raw response body as a string.
        request: The request object that resulted in this response.

    """

    def __init__(self,
                 status_code,
                 reason_phrase,
                 headers,
                 text,
                 request):
        """
        Initialize an HttpResponse instance.

        Args:
            status_code: The HTTP status code returned by the server.
            reason_phrase: The reason phrase associated with the status code.
            headers: Response headers as key-value pairs.
            text: The raw response body as a string.
            request: The request object that resulted in this response.

        """
        super().__init__(status_code, reason_phrase, headers, text, request)
