If you are trying to sync and there is a problem with a remote database fossil will return an error like "unknown command &lt;H1&gt;Database". this can be very misleading for new users. while its not possible to make a cgi return an http code other than 200 it should be possible to recognize your own error messages and display something more appropriate.