读出错误类型

一次请求失败了,服务器返回了这样一段 JSON(示意):
{
"error": {
"message": "Authentication Fails, Your api key: ****abcd is invalid",
"type": "authentication_error",
"code": "invalid_request_error"
}
}错误类型 type 的值是什么?照抄。
提交要求: 只提交最终输出结果,不要添加多余的说明或引号。