Omit PastesPostResp on error.
Return errors in JSON format.

Fixes #12.