response with appropriate headers.