adding simple error code setup for api responses