'GET /api/user/v1/preferences/{username}/'

def get(self, request, username):

    try:
        user_preferences = get_user_preferences(request.user, username=username)
    except UserNotAuthorized:
        return Response(status=status.HTTP_403_FORBIDDEN)
    except UserNotFound:
        return Response(status=status.HTTP_404_NOT_FOUND)
    return Response(user_preferences)
