HTTP handling changes

- More parsing of HTTP codes
- Added HTTP code for server error in case of unknown HTTP code