Fixes for compatibility with Swagger to allow response types other than JSON