def CheckResponse(code):
    """ Analyze the given response code.
    :param code: Integer value
    :return: String response describing API response code
    """
    response_codes = {200:'Success',
                      301:'Server Redirecting to new endpoint.',
                      401:'Credentials Not Authenticated',
                      400:'Bad Request',
                      403:'Access forbidden, check permissions',
                      404:'Resource Not Found'
                     }
    try:
        print(f'Code:{code} -> {response_codes[code]}')
        return code
    except:
        print('Error, the response code is not documented here. Google it.')