Adding correct response type in response header