Update README.md

Added infos how to return errors as json.

I hope this is the right way to do it.