Fix: added default response  codes, added additional parama app to constructor .