Print error message in wgi mode
Add HTTP error code to download error message