Essentially I'm attempting to start httpd.exe from command prompt. Therefore if any error happens i ought to have the ability to catch the main reason in codes, why it had not been in a position to start. Yes, it already provides the exact reason but I wish to display my very own errors. Can there be any error codes like , 1, etc for httpd.exe.

Thanks ahead of time, Frank.

The Apache Http Server is free. If you wish to understand what error codes it returns, browse the source code, which you'll find by searching around in http://httpd.apache.org/. The official doc doesn't specify any error codes, so YMMV.