Exception class now contains error codes to be sended via header or other usages