API to implement posting of errors