Issue #2934362 by Wim Leers, e0ipso, gabesullice, Ivan Berezhnov: Specify a "code" for every exception that JSON API throws