I need to custom set the HTTP status code using outstatuscode as 412 & require the process execution to be erroneous( in red) at the same time.Is it possible?
Unfortunately no. This has come up before...I thought there was a specific idea for this but the closest I've found is Add new state to process reporting.
How to return a document and then raise an exception
Right, as an alternative approach you could truly decouple the processes by sending the documents to another process, typically via an Atom Queue (or to a web service listener process configured with no Output i.e. fire-and-forget).
Retrieving data ...