Fixed some issues with HTTP responses