A big refactoring for API. Now the error-codes are defined in error codes file as a separate exceptions holding error codes and messages. Api now retrieves messages from this file by raising a relevant
exception from the file.

Next api error-responses should be rewritten to print all data (codes and msg) and be cleaned from legacy code structures which still remain. Success responses should also be defined
and written.