#63 allow custom error codes from plain exceptions