Implemented toByteBuffer() method in Response