code: public RestHandlerExceptionResolverBuilder defaultContentType(String mediaType) {
          defaultContentType( hasText(mediaType) ? MediaType.parseMediaType(mediaType) : null );
          return this;
      }
docs: The default content type that will be used as a fallback when the requested content type is
  not supported.