def handler
      proc do |response|
        case response.code
        when 200..204
          response
        else
          message = response.body
          message = message["errorMessages"].join('\n') if message.is_a?(Hash)
          Jiralicious::JiraError.new(message)
        end
      end
    end
def handler
      proc do |response|
        case response.code
        when 200..204
          response
        else
          message = response.body
          message = message["errorMessages"].join('\n') if message.is_a?(Hash)
          Jiralicious::JiraError.new(message)
        end
      end
    end
Configures the default handler. This can be overridden in
 the child class to provide additional error handling.