---
"Raise 404 when type doesn't exist":
  - do:
        indices.create:
          index: test_index
          body:
              mappings:
                test_type:
                  properties:
                    text:
                      type:     string
                      analyzer: whitespace

  - do:
      catch: missing
      indices.get_mapping:
        index: test_index
        type: not_test_type
  
