Python 3.10 is now available in preview.


Raised when mime_type and http_headers specify a mime type.

Inherits From: Error, expected_type

This error will be raised even when both fields specify the same content type. For example, the following configuration will be rejected:


  - url: /static
    static_dir: static
    mime_type: text/html
      content-type: text/html

This only applies to static handlers, such as a handler that specifies static_dir or static_files.