Improvements to how errors are handled (added an Exception).
Improved how HTTP codes are handled.
Improved how HTTP headers are handled.
Updated documentation.