# frozen_string_literal: true module DeepL module Exceptions class BadRequest < RequestError def message JSON.parse(response.body)['message'] end end end end