Added HTTP status codes to error output.
Minor mods.