Handling Errors in Printers


How to get the printer error related informations from the printer once the print page is sent to the printer? Printer error informations like printer out of paper, out of toner, paper jammed, printer door opened etc

QNX OS version : 6.4
Printers : USB printers, N/w printer.

I’m new to printing in QNX. I’m not able to find relevant materials related to the error handling in printer.
Could any one please help me on this regard?

Thanks in Advance,