It would be handy if the format=json transformation returned some sort of JSON response instead of the original file when it is not an image.