Fix missing traceback error, added error number mappings.

Reverted back to the original and added in the changes necessary to make it functional.  traceback was missing in the manual patch appled earlier this week.  This pull request will resolve that. 

In addition, an error-message mapping has been added for HTTP codes and IOError numbers.

Some whitespace/formatting changes were applied for readability.