add 'code' attribute to error responses.