'Creates an AccessResponse object.
Arguments:
has_access (bool): if the user is granted access or not
error_code (String): optional - default is None. Unique identifier
for the specific type of error
developer_message (String): optional - default is None. Message
to show the developer
user_message (String): optional - default is None. Message to
show the user'

def __init__(self, has_access, error_code=None, developer_message=None, user_message=None):

    self.has_access = has_access
    self.error_code = error_code
    self.developer_message = developer_message
    self.user_message = user_message
    if has_access:
        assert (error_code is None)
