[doc] Updated restapi documentation
[tests] Check transactions for errors before being added

- Added support for Exception-specific HTTP response codes for
  AccountinExceptions.