Proper mimes for text and json responses