diff --git a/lib/liudesk_cmdb.rb b/lib/liudesk_cmdb.rb index 85f066983c52bc97499a0bb8f5057fb13b5a230b..288eaa43fc9a692612e3393e43b54be966ad1bd3 100644 --- a/lib/liudesk_cmdb.rb +++ b/lib/liudesk_cmdb.rb @@ -37,6 +37,8 @@ module LiudeskCMDB ForbiddenError.new body, code when "404" NotFoundError.new body, code + when "406" + NotAcceptableError.new body, code when "422" UnprocessableError.new body, code else @@ -66,6 +68,7 @@ module LiudeskCMDB class ForbiddenError < RequestError; end class NotFoundError < RequestError; end + class NotAcceptableError < RequestError; end class UnprocessableError < RequestError; end class ServerError < RequestError; end