added version and error headers