[FEATURE] Add gateway.errors global object.