Added test for content-length
Updated response writer to allow any HTTP code