Added response header back
Updated function signatures
Extracted response body
Added tests for status