Error codes are generated as well now.
Error messages and codes are handled properly now.

Also added integration tests.