def get_error_kind(code):
    """
    Get the kind of the error based on the http error code.
    """
    if code == 400:
        return 'BadRequest'
    elif code == 401:
        return 'UnAuthorized'
    elif code == 403:
        return 'Forbidden'
    elif code == 404:
        return 'NotFound'