Add error method
Fix content type value
Add getHeader method