Fixed: Handling of HTTP Status codes.
Added tests.